Ctrl-Left/Right在Visual Studio Code上无法用于多光标。

huangapple go评论49阅读模式
英文:

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/RightCtrl-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"

huangapple
  • 本文由 发表于 2023年6月6日 15:08:23
  • 转载请务必保留本文链接:https://go.coder-hub.com/76412193.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定