Disable multiple cursors in VSCode - visual-studio-code

I was playing on my vscode configurations and accidentally change some configuration when I want to select the text on my code lines.
For example, when I want to select some lines in my code immediately appears a lot of cursors instead of selecting the text that I wanted. How can I change this configuration? Because a few days ago the selection in VSCode worked properly.
As you can see on the screenshot below, this happens when I try to select those lines :(

Turn off Column Selection Mode
From the main menu: Selection/Column Selection Mode uncheck
or there should be a Column Selection button on the Status Bar to the right that can be disabled.

Related

VSCode - Disable selection on auto-complete suggestion

Whenever I use autocomplete, VSCode automatically puts whatever I type in a selection, it didn't happen before and it only started happening recently.
Here's what happens:
I type something like this and suggestion comes up:
Then I press enter to auto complete:
All of this is fine, but when I start typing in the quotes:
VSCode automatically puts my text in a selection. This causes multiple problems. Suggestions get disabled in selection and I have to press Esc everytime I want the selection disabled.
Is there any way to fix this?
The question was already answered by #Anton Solomin and #devanil. The issue is VS code auto-suggestion is not working when text is highlighted, because some of your code snippet is preventing quick suggestion by VS code.
So just tell VS code that don't disable quick suggestion if some snippets askes you to do it.
Go to VScode settings page, in settings search bar type editor.suggest.snippetsPreventQuickSuggestions
Uncheck Controls whether an active snippet prevents quick suggestion

Line selection not working properly on VSCode

My line selection is acting very weird on VSCode. It goes in this weird multi-line edit mode. I am unable to select multiple lines fully by dragging my mouse down on lines. Even when I use shift and down arrow it does not select the whole line.
Mouse drag selection not working:
Keyboard Shift + Down Arrow not working:
On Mac the solution was simple go to the menu "Selection" and deselect the option "Column Selection Mode".
Now it works as expected.
Two things I use:
I select full lines by clicking and dragging in the 'numbers' columns
For multi-line to work I use the menu option -> Selection -> Column Select Mode
I had the same issue. Resolved it as below.
Go to Selection menu in vs code menu bar.
Untick on Column Selection Mode option.
go to file, preference, settings and search for Editor:Column Selection and desable. this solve my problem
There are two options:
If you wish to perform the desired selection without changing the settings, then hit the ALT key and drag your mouse
Or, just Go to Selection menu in VS code menu and untick the Column Selection Mode option.

Select all active indent keyboard shortcut in VS Code

I'm looking for a keyboard shortcut for selecting everyting in the current active indent in VS Code, that could be useful for selecting a React or html component for example.
Basically, I'd like to select everything that has an indentation of at least same or more as the highlighted indent guide as shown below in two pictures. This guide line/stripe can be enabled through editor.highlightActiveIndentGuide
When cursor and highlighted indent guide are like below:
keyboard shortcut should select this:
I often find myself trying to select an entire React component which could be 10 lines sometimes, so it'd be pretty handy to have such shortcut. If there is any extension which would let me do it, it could work too.
If it doesn't exist at all, I'll send a feature request.
Look at the editor.action.smartSelect.grow command: Shift-Alt-Right. You just have to hit it twice to do what you want.

Get rid of black blinking cursor [duplicate]

When I edit code in the middle of statements, it replaces the current code around it. I cannot find a way to replace this with a normal cursor that only inserts data instead of replacing it. Is that functionality possible in Eclipse?
The problem is also identified in your status bar at the bottom:
You are in overwrite mode instead of insert mode.
The “Insert” key toggles between insert and overwrite modes.
It sounds like you hit the "Insert" key .. in most applications this results in a fat (solid rectangle) cursor being displayed, as your screenshot suggests. This indicates that you are in overwrite mode rather than the default insert mode.
Just hit the "insert" key on your keyboard once more... it's usually near the 'delete' (not backspace), scroll lock and 'Print Screen' (often above the cursor keys in a full size keyboard.)
This will switch back to insert mode and turn your cursor into a vertical line rather than a rectangle.
You might have pressed 0 (also used for insert, shortcut INS) key, which is on the right side of your right scroll button. To solve the problem, just press it again or double click on 'overwrite'.
This problem, in my case, wasn't related to the Insert key. It was related to Vrapper being enabled and editing like Vim, without my knowledge.
I just toggled the Vrapper Icon in Eclipse top bar of menus and then pressed the Insert Key and the problem was solved.
Hopefully this answer will help someone in the future.
In my case, it's related to the Toggle Vrapper Icon in the Eclipse.
If you are getting the bold black cursor, then the icon must be enabled. So, click on the Toggle Vrapper Icon to disable. It's located in the Eclipse's Toolbar. Please see the attached image for the clarity.
This issue can happen not only in eclipse but also in any of the text-editor.
On windows systems, windows-10 in my case, this issue arose when the shift and insert key was pressed in tandem unintentionally which takes the user to the overwrite mode.
To get back to insert mode you need to press shift and insert in tandem again.

Column selection like Visual Studio

Is it possible selecting multi-line columns like Visual Studio (or Notepad++ or other text editor)?
If I press shift+Alt buttons and move the arrows button the behavior of Visual Studio code is different from the other text editor.
Thanks!
v1.43 brought what you are looking for in a new "Column Selection Mode". Demo:
See https://github.com/microsoft/vscode/issues/91249:
While this is checked, selecting with the mouse will create a column
selection and Shift+arrow keys and Shift+Page Up/Down keys will also
create column selection.
Also https://github.com/microsoft/vscode/issues/91361 which would act as a toggle for preexisting selections when enabling/disabling Column Selection Mode. So a current selection would be modified to a column selection (including multiple cursors) when enabling the mode and vice-versa.
And https://github.com/microsoft/vscode/issues/91362 where enabling the Column Selection Mode would be indicated in the Status Bar.
See https://code.visualstudio.com/updates/v1_43#_column-selection-mode
You can also disable Column Selection mode from the Status bar.