Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable multi cursor functionality

I do not like the Visual Studio multi cursor options, and I never use them.

Inevitably, I phantom-pressing some key combination that brings up a multi cursor option, then I write some code, and then the code is destroyed afterward. Please tell me how to completely disable all such functionality in Visual Studio Code. I am running on Ubuntu, but also interested in how to accomplish this on Windows (if there is any difference).

I should mention, that this happens literally once every 5 minutes to me on Ubuntu, but in Windows it happens much less frequently (like once an hour).

like image 537
bremen_matt Avatar asked Dec 06 '18 12:12

bremen_matt


People also ask

How do I disable multiple cursors in Intellij?

This feature can be toggled using Edit → Column selection. The shortcut is: Alt + Shift + Ins on Linux or Windows. ⇧ + ⌘ + 8 on Mac.

How do I get rid of multiple cursors in Pycharm?

Press Esc to delete all existing carets, except the one that was added last. Alt+Click at one of the multiple carets to remove it.

How do I activate multiple cursors?

You can add secondary cursors (rendered thinner) with Alt+Click. Each cursor operates independently based on the context it sits in. A common way to add more cursors is with Shift+Alt+Down or Shift+Alt+Up that insert cursors below or above.


2 Answers

Switch Coulmn selection mode

Un-check Selection->Column Selection Mode

like image 117
Moumit Avatar answered Nov 13 '22 02:11

Moumit


You can remove the keyboard shortcut(s) that trigger this functionality.

Click on the gear on the bottom-left corner of the window and choose "Keyboard Shortcuts" from the menu. Type "Add Cursor" into the "Search" box and it shows only the commands that contain "Add Cursor" in their name.

Right-click on each command that add a cursor and has a keyboard shortcut associated and select "Remove Keybinding".

Also search for "Multi-Cursor". It could return the command "Toggle Multi-Cursor Modifier" that is associated to a combination of modifier keys (one or more of Ctrl, Alt, Shift). If such a combination of keys is pressed when you click in the editor window it adds a new text cursor at the click position. You should also removed these key bindings.

like image 37
axiac Avatar answered Nov 13 '22 02:11

axiac