Is there in vscode an option to: Select everything between matching brackets

前端 未结 7 1246
孤街浪徒
孤街浪徒 2020-12-08 13:48

Is there in vscode a shortcut available which selects all code between matching brackets e.g. in atom this shotcut is ctrl+alt+m

7条回答
  •  再見小時候
    2020-12-08 14:20

    Place the cursor inside the bracket (not directly next to a bracket) and execute editor.action.smartSelect.grow until everything inside the bracket is selected. The default shortcut is Shift+Alt+Right.

    You can shrink the selection with editor.action.smartSelect.shrink which has the default shortcut Shift+Alt+Left.

提交回复
热议问题