问题描述
在 Atom 中,我可以使用 ++ 选择括号内.如何在 Visual Studio Code 中执行此操作?我检查了键盘绑定,但没有找到任何东西.
In Atom I can select inside of brackets with ++. How can I do this in Visual Studio Code? I've checked the keyboard bindings, but didn't find anything.
推荐答案
在您可能想要查看的键绑定文件中有 2 个更好的替代命令:
There are 2 even better alternative commands in the keybinding file you might want to check out:
editor.action.smartSelect.grow
和
editor.action.smartSelect.shrink
他们选择下一个边界之间的所有内容(引号、括号、花括号...),当您再次点击快捷方式时,选择会增长到下一个边界.
They select everything in between the next boundary (quotes, brackets, curly braces...) and the selection grows to the next boundary when you hit the shortcut again.
默认快捷键是 ctrl+shift+cmd+right/ctrl+shift+cmd+left,这对我来说有点太手指重"了,所以你可能想重新绑定它(我使用 ctrl+up/ctrl+向下).
Default shortcut is ctrl+shift+cmd+right / ctrl+shift+cmd+left, which is a bit too "finger heavy" for my taste, so you might want to rebind it (I use ctrl+up / ctrl+down).
这篇关于如何在 Visual Studio Code 中选择大括号内的文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!