Reputation: 2280
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.
Upvotes: 4
Views: 2338
Reputation: 186
In Windows pressing ALT key twice will work fine, I hope pressing Option key twice will work in Mac OS. Thank You! :)
Upvotes: 0
Reputation: 2280
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.
Upvotes: 2
Reputation: 6543
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"
}
Upvotes: 8