2016-11-14 70 views

回答

3

我发现这个扩展工作https://marketplace.visualstudio.com/items?itemName=ow.vscode-subword-navigation

有趣的是,你需要单独配置每个组合:

{ 
    "key": "alt+left", 
    "command": "subwordNavigation.cursorSubwordLeft", 
    "when": "editorTextFocus" 
}, 
{ 
    "key": "alt+right", 
    "command": "subwordNavigation.cursorSubwordRight", 
    "when": "editorTextFocus" 
}, 
{ 
    "key": "alt+shift+left", 
    "command": "subwordNavigation.cursorSubwordLeftSelect", 
    "when": "editorTextFocus" 
}, 
{ 
    "key": "alt+shift+right", 
    "command": "subwordNavigation.cursorSubwordRightSelect", 
    "when": "editorTextFocus" 
}, 
{ 
    "key": "alt+backspace", 
    "command": "subwordNavigation.deleteSubwordLeft", 
    "when": "editorTextFocus" 
}, 
{ 
    "key": "alt+delete", 
    "command": "subwordNavigation.deleteSubwordRight", 
    "when": "editorTextFocus" 
} 
+0

但是,Visual Studio或Visual Studio代码? –

+1

请忽略我以前的评论。当然是VS码。完全是我的不好。事实上,我只是测试它,它的工作花哨。谢了哥们! –