Visual Studio 代码 snake_case 类似 IntelliJ Camel Humps 的选词
Visual Studio Code snake_case word selection like IntelliJ Camel Humps
我正在开发 Wordpress 主题。 Wordpress 开发人员更喜欢 snake_case 编码。有没有类似IntelliJ驼峰选词的功能。
有这两个未绑定的用于选择单词部分的命令,例如snake_case。
cursorWordPartLeftSelect
cursorWordPartRightSelect
cursorWordPartStartLeftSelect
还有一些命令可以在单词部分之间移动,但不能选择它们。只需在键盘快捷键中搜索 "wordpart"。
也许键绑定如:
{
"key": "alt+right",
"command": "cursorWordPartRight",
"when": "editorTextFocus",
},
{
"key": "alt+left",
"command": "cursorWordPartLeft",
"when": "editorTextFocus",
},
{
"key": "ctrl+alt+right",
"command": "cursorWordPartRightSelect"
},
{
"key": "ctrl+alt+left",
"command": "cursorWordPartLeftSelect"
}
我正在开发 Wordpress 主题。 Wordpress 开发人员更喜欢 snake_case 编码。有没有类似IntelliJ驼峰选词的功能。
有这两个未绑定的用于选择单词部分的命令,例如snake_case。
cursorWordPartLeftSelect
cursorWordPartRightSelect
cursorWordPartStartLeftSelect
还有一些命令可以在单词部分之间移动,但不能选择它们。只需在键盘快捷键中搜索 "wordpart"。
也许键绑定如:
{
"key": "alt+right",
"command": "cursorWordPartRight",
"when": "editorTextFocus",
},
{
"key": "alt+left",
"command": "cursorWordPartLeft",
"when": "editorTextFocus",
},
{
"key": "ctrl+alt+right",
"command": "cursorWordPartRightSelect"
},
{
"key": "ctrl+alt+left",
"command": "cursorWordPartLeftSelect"
}