Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to come back to single cursor mode in Visual Studio Code

In Visual Studio it is possible to place the cursor on multiple lines in order to edit them in parallel. On my OS (Ubuntu), the shortcut to enable the multi-cursors mode is Ctrl + Shift + Up or Ctrl + Shift + Down.

Is there a shortcut to come back to the single-cursor mode?

On the official documentation there is nothing on this feature, neither for activation, nor for deactivation. In order to make this question as more general as possible, since Visual Code's shortcuts are OS-dependent, I'm looking for an answer covering all the major OS.

like image 809
Neb Avatar asked Oct 21 '25 14:10

Neb


2 Answers

I am not on linux, but it should be escape, which is bound to Command workbench.action.terminal.clearSelection.

You can check this in Keymap Shortcuts

{
  "key": "escape",
  "command": "workbench.action.terminal.clearSelection",
  "when": "terminalFocus && terminalTextSelected && !terminalFindWidgetVisible"
}
like image 151
fbehrens Avatar answered Oct 24 '25 05:10

fbehrens


I answer my own question.

Apparently, in the current version of Visual Code, it is sufficient to press Esc to come back to the single cursor mode.

like image 39
Neb Avatar answered Oct 24 '25 04:10

Neb



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!