Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ctrl-Left/Right not working for multiple cursors on Visual Studio Code

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" 
    },

like image 340
sirj Avatar asked Aug 31 '25 17:08

sirj


1 Answers

The other reason for this to suddenly happen is if you have accidentally enabled the screenreader option. To remove this, click in the status bar:

Screen Reader status

Then say "No" to having a screenreader

Say NO to screenreader

After this, multi-select will work as intended without requiring custom configuration changes. If you do need screenreader enabled, the above custom config would be the only way.

like image 63
netniV Avatar answered Sep 02 '25 07:09

netniV