Hotkey for word selection and selection extension in VS code

In VS with Resharper, there is the ctrl w command that selects the whole word in the cursor, and then, when pressed repeatedly, continue the selection in brackets, then include them, then in the following external brackets, etc.

What is the command name for Visual Studio Code?

+9
source share
2 answers

The shrink / expand selection commands should be what you are looking for. Command names: editor.action.smartSelect.grow (default binding shift + alt + right ) and editor.action.smartSelect.shrink (default binding shift + alt + left ).

+17
source

I am using alt + s for editor.action.smartSelect.grow.

 { "key": "alt+s", "command": "editor.action.smartSelect.grow", "when": "editorTextFocus" } 
0
source

Source: https://habr.com/ru/post/1011624/


All Articles