Is there a way to select multiple non-adjoining (totally separate) texts in VS? I can do it in MS Word by selecting the texts separately by holding the Ctrl button, like this:
My version is 11.
Edit: I'm not talking about Alt+Select
block selection. Also I would love to see if there exist a technique in Notepad++.
Update: MixEdit extension now provides this ability.
MultiEdit extension for VS allows for something similar (doesn't support multiple selections as of this writing, just multiple carets)
Head over to Hanselman's for a quick animated gif of this in action: Simultaneous Editing for Visual Studio with the free MultiEdit extension
MixEdit extension for Visual Studio allows you to do multiediting in the way you are describing. It supports multiple carets and multiple selections.
For Visual Studio Code
Got to this question because I was looking for a way to select multiple words with mouse click on VS Code, which should be achieved by using
alt+click
, but this keybinding wasn't working (I think it is something related to my OS, Ubuntu).For anyone looking for something similar, try changing the key to
ctrl+click
.Go to
Selection
>Switch to Ctrl+Click for Multi Cursor
Just to note,
MixEdit is not completely free.
Upon installation and use, a popup redirects to webpage - similar to SublimeText's unlicensed software pop-up message.
There is supposedly a way to do it now with
Ctrl + Alt + Click
but I use this extension because it has a bunch of other nice features that I use: https://marketplace.visualstudio.com/items?itemName=thomaswelen.SelectNextOccurrenceIn Visual Studio 2019, you can put your caret on the right place and then press SHIFT ALT and . (dot). This will select the next occurrence.