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碼。完全是我的不好。事實上,我只是測試它,它的工作花哨。謝了哥們! –