Skip to content

Smart grow feature #2150

@magzim21

Description

@magzim21

Extension Version

2.37.5

Problem Statement

editor.action.smartSelect.grow (Shift + Option + Right) feature does not determine syntax units/tokens correctly.

Expected User Experience

I expect a cursor to grow by unit. So first it grows to the whole word, then to the inner quote, then to the outer quote and then to the whole line.
Now it grows to the whole word (treating - and _ as word separators), and then the whole line.
So I can not select my_nice-word using Shift + Option + Right

Proposal

No response

References

https://code.visualstudio.com/docs/editing/codebasics#_shrinkexpand-selection
https://marketplace.visualstudio.com/items?itemName=letrieu.expand-region

Help Wanted

  • I'm interested in contributing a fix myself

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions