Option to make `editor.action.smartSelect.expand` ignore words
editor.action.smartSelect.expand first selects a subword (can be turned off), then a word ( CAN'T be turned off), and only then it starts doing what I want it to do, and select/grow within a scope (quotes, parentheses, brackets).
I never want it to select words, that's what I have editor.action.addSelectionToNextFindMatch for, but unfortunately this is currently not possible.
In other words, when I use smartSelect.expand, the first time I press it I basically get addSelectionToNextFindMatch behavior, and only then it'll allow me to select the whole string/other scope, which is incredibly annoying as I need to spam the shortcut and pay attention to see if it already selected what I wanted it to select on the first press.
This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!
To clarify the use case, I just want a shortcut to select the whole contents of a string within '' or "" or whatever the language's string encapsulation characters are. Same thing for content within brackets.
This is to my knowledge currently not available. The smartSelect.expand constantly stumbles on words, commas, or other delimiters, and I just never know how many times I have to press it to get the whole string contents, or everything between (), [], etc., which is super frustrating.
whole contents of a string within '' or "" or whatever the language's string encapsulation characters are.
This needs extension's smartness. Out of the box, VS Code only does very basic things like words but doesn't have logic for strings (because they require language know-how, like interpolated strings etc)
This needs extension's smartness. Out of the box, VS Code only...
I just want it to do exactly what it's already doing, but not stumble on words, commas, and parameters. That's all :)
I guess I'm asking for a different action. Something like smartSelect.scope that selects everything in current scope:
- If I'm in a string - the whole string.
- If I'm in a function parameters - everything between
() - If I'm in an array - everything between
[] - If I'm in a block - everything between
{}
smartSelect.expand already does this, but it stumbles on a lot of stuff in between, making it incredibly annoying to use to the point that I almost never do, although I'd want to often.
This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!
:slightly_frowning_face: In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation.
Happy Coding!