[英]How can I turn VSCode's sub word navigation off?
在snake_cased 語言中,我想以變量方式而不是word_wise 方式導航,並從這些站點中排除@、% 或/ 之類的符號。
例子:
|$here_she_goes_again; #the pipe marks my cursor position
用一個 Ctrl+Right,我想登陸分號前的空格,
$here_she_goes_again|; #the pipe marks my cursor position
然后,使用 Ctrl+Left,我想返回到行首。
|$here_she_goes_again; #the pipe marks my cursor position
有人讓這個工作嗎?
您可以使用擴展名Select By和命令moveby.regex
您可以定義一個正則表達式來搜索並將其綁定到Ctrl+Left
和另一個綁定到Ctrl+Right
在鍵綁定中,您可以將其限制為特定的語言 ID。
把它放到你的settings.json
:
"[javascript]": {
"editor.wordSeparators": "`~!@#%^&*()-=+[{]}\|;:'",.<>/?"
}
使用您的語言標識符。 我從默認分隔符中刪除了$
以使您的示例適用於 javascript。 您可以刪除您指定的其他字符。 underscore
對我來說已經不是默認的了。 只需確保這些字符不在上面顯示的特定語言設置中。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.