在 VS Code 中选择单词和扩展选择的快捷键

Shortcut key for selecting a word and extending the selection in VS Code

在带有 Resharper 的 VS 中,有命令 ctrlw 将 select 光标处的整个单词,然后,重复按下时,将 selection 扩展到括号​​,然后也包括它们,然后扩展到下一个外部括号等

Visual Studio 代码中的命令名称是什么?

shrink/expand selection 命令应该就是您要查找的内容。命令名称是 editor.action.smartSelect.grow(默认键绑定 shift+alt+right)和 editor.action.smartSelect.shrink(默认键绑定shift+alt+left)。

我对 editor.action.smartSelect.grow 使用 alt+s。

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