Vscode: 添加Ctrl +右行为选项

创建于 2016-03-01  ·  3评论  ·  资料来源: microsoft/vscode

Ctrl + Right的行为类似于崇高行为,它会移至当前单词的末尾。

VS(以及其他Windows编辑器,如记事本,单词)转到下一个单词的开头。

为了满足这两个阵营,我们应该添加一个编辑器选项来控制此行为。

bug verified

最有用的评论

要控制此行为并获得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" }

所有3条评论

对于#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。

此页面是否有帮助?
0 / 5 - 0 等级