Ctrl + Right的行为类似于崇高行为,它会移至当前单词的末尾。
VS(以及其他Windows编辑器,如记事本,单词)转到下一个单词的开头。
为了满足这两个阵营,我们应该添加一个编辑器选项来控制此行为。
对于#943中提到的行为,也可以同时使用Ctrl + Left选项
要控制此行为并获得VS风格的Ctrl + Right,请编辑keybindings.json
并添加:
{ "key":"ctrl+right", "command":"cursorWordStartRight", "when":"editorTextFocus" }
{ "key":"ctrl+shift+right", "command":"cursorWordStartRightSelect", "when":"editorTextFocus" }
这将覆盖默认值:
{ "key":"ctrl+right", "command":"cursorWordEndRight", "when":"editorTextFocus" }
{ "key":"ctrl+shift+right", "command":"cursorWordEndRightSelect", "when":"editorTextFocus" }
另请参阅#832,以获取VS风格的Ctrl + Delete。
最有用的评论
要控制此行为并获得VS风格的Ctrl + Right,请编辑
keybindings.json
并添加:这将覆盖默认值: