4
由于this question是针对“大”的Visual Studio和Resharper,我也希望在VS Code中看到这个特性。有没有办法在VS Code中通过方法名称来驼峰驼峰?
通过shortcut list为VS代码滚动,我无法找到它,但我希望它仍然存在,但所谓的比骆驼,驼峰或这样不太直观的东西。
由于this question是针对“大”的Visual Studio和Resharper,我也希望在VS Code中看到这个特性。有没有办法在VS Code中通过方法名称来驼峰驼峰?
通过shortcut list为VS代码滚动,我无法找到它,但我希望它仍然存在,但所谓的比骆驼,驼峰或这样不太直观的东西。
我发现这个扩展工作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"
}
但是,Visual Studio或Visual Studio代码? –
请忽略我以前的评论。当然是VS码。完全是我的不好。事实上,我只是测试它,它的工作花哨。谢了哥们! –