Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSCode Vim multiple cursors

I have looked everywhere and I am still unable to switch off this 'feature'!

I've been using vi and, later, vim, since the 80's and I have never had need of multiple cursors, nor can I see a use for them.

:<range>s/search/replace/ does everything I need so this new feature is infuriating beyond words, especially as I've no idea how to switch it off when it seemingly-randomly appears.

Would someone be wonderful enough as to tell me how to banish, remove, consign-to-history the multiple cursors feature in VSCode Vim 1.12.4, please?

like image 383
pwmusic Avatar asked Jan 06 '20 18:01

pwmusic


1 Answers

I believe this issue is specific to the plugin. I experienced it with the HTML plugin recently, and I'm assuming you have the same problem with HTML files, but the same principle should apply to other plugins as well. You just have to find the setting.

In the VS Code settings, there is an option that reads:

HTML: Mirror Cursor On Matching Tag

You can uncheck the box there to disable the feature. Or you can go to the settings.json in your local repo (inside the .vscode directory), or the equivalent global file, and add/modify the following field like so:

"html.mirrorCursorOnMatchingTag": false

That should take care of it for you.

like image 120
Austin Davis Avatar answered Nov 14 '22 23:11

Austin Davis