英文:
Ctrl-Left/Right not working for multiple cursors on Visual Studio Code
问题
不确定在哪里提出这个问题,但昨天,如果我在上面/下面的行上添加了一个光标(Ctrl-Alt-Up/Down
),我可以通过执行 Ctrl-Left/Right
移动到单词的开头,或者通过执行 Ctrl-Shift-Left/Right
选择这两个光标。
然而,今天,如果我有多个光标,然后尝试执行 Ctrl-Left/Right
或 Ctrl-Shift-Left/Right
,所有其他光标都会消失。如何解决这个问题?
注意:如果我执行 Shift-Left/Right
或只执行 Left/Right
,我的其他光标不会消失。
英文:
Not sure where to ask this question, but yesterday, if I added a cursor to an above/below line (Ctrl-Alt-Up/Down
), I was able to move both to the start of the word if I did Ctrl-Left/Right
, or select both with Ctrl-Shift-Left/Right
.
However, today, if I have multiple cursors, and try Ctrl-Left/Right
or Ctrl-Shift-Left/Right
, all my other cursors disappear. How do I fix this issue?
Note: My other cursors do not disappear if I do Shift-Left/Right
or just Left/Right
Default Keybindings .json
[
{
"key": "ctrl+right",
"command": "cursorWordEndRight",
"when": "textInputFocus && !accessibilityModeEnabled"
},
{
"key": "ctrl+shift+right",
"command": "cursorWordEndRightSelect",
"when": "textInputFocus && !accessibilityModeEnabled"
},
{
"key": "ctrl+alt+up",
"command": "editor.action.insertCursorAbove",
"when": "editorTextFocus"
},
答案1
得分: 1
更改
"when": "textInputFocus && !accessibilityModeEnabled"
为
"when": "editorTextFocus"
英文:
Answer:
Change
"when": "textInputFocus && !accessibilityModeEnabled"
to
"when": "editorTextFocus"
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论