我正在开发Wordpress主题。 Wordpress开发人员更喜欢snake_case编码。是否有任何功能,如IntelliJ驼峰单词选择。
有两个非绑定命令用于选择单词部分,如蛇案例。
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"
}