Native multi-editing (multiple cursors and selections) support
Multiple selections/cursors in Sublime Text is by far the most useful editor feature I have in my toolbox. Using search and replace in Visual Studio is slow and unwieldy in comparison and I find myself frequently copying blocks of text into Sublime Text just to perform versatile edits using multiple cursors, after which I copy the result back into Visual Studio.
A future version of Visual Studio would win huge points with this feature alone.
As of Visual Studio 2017 Update 8 Preview 3 (15.8 Preview 3), we have introduced native support for Multi-Caret editing and selection. You can find all features/actions under the Edit > Multiple Cursors menu when you have focus in the editor. Currently, you can insert multiple carets, add a selection on the next match, and add selections on all matches. We look forward to hearing your feedback as we continue to improve this feature!
Xavier Poinas commented
The new feature added is minimal... dare I say useless. It doesn't support copy and paste properly, doesn't support adding carets at the end of each line, selecting all occurrences, etc. Multiple carets have been nailed in editors like Sublime Text and VS Code, how hard is it to copy their feature sets?
I would like to see this implemented as I have it in vs code [alt]+left mouse button. Otherwise I might just as well search and replace to have the same if not better functionality. Nice try though :)
Complete swing and a miss. I really fail to see how this is any different than what VS already had.
Open VSCode and use Ctrl+Alt+Up(or down), then notice how you can move the cursor with the arrow keys, or hold Ctrl and move the arrow keys, or hold Ctrl+Shift and move the arrow keys and ALL cursors move in place.
Jason Yu commented
When can we have full multi line cursor that works like Sublime Text and Visual Code?
Middle click and drag, and navigate with multiple cursor by default
Nice start. Ideally it should allow one to decide where to put each extra caret by something like ctrl+click
Karl Metum commented
Just talked with a MSFT employee with my feedback about this.
From our call the features that I would love to see are these:
1. Implement proper backend inside editor for multi caret support
2. Publish this backend support as an API for extensibility, so that we extensions creators can leverage it and make other features quicker as an extension with the posibility of integrating it inside VS eventually
3. Select next word - This would select next occurence of already selected word and place new caret at it
4. Split selection into carets - This would split selection into lines and placed carets on each line
5. Unselect next word - This would unselect and removed last added caret
For me 1+2 is the bare minimum, which you should publish ASAP and 3-5 are secondary features, which could be made first as an extension and then maybe implemented into VS itself.
Πανος Αθανασιου commented
Would be great to make it as useful as the VS Code app :D !!!
Eric Olsen commented
Will it be as comprehensive as the VS Code "Multi-cursor and selection" tools? Where can I sign up to be notified of early access?
MixEdit is a (bad - but working) alternative. As of January 2018, this feature is not in VS2017
Thomas Welén commented
I gave it a try, check if out if you like: https://marketplace.visualstudio.com/items?itemName=thomaswelen.SelectNextOccurrence
Jared Malcolm commented
I've asked on SO before I deemed the feature to apparently not exist in full blown VS. The post does include a GIF of the features that I'd love to see here.
The lack of this one feature makes me miss visual studio code.
I use MixEdit extension, It works well, but seems it is discontinued. It would be nice if that was build-in feature
Kieren Johnstone commented
This is a fantastic feature in VS Code and many other editors which is missing from VS itself. @Juliano, the functionality available is nowhere near that of other editors.
Juliano Penna commented
In fact this is currently working.
I had trouble because of the Alt keybinding with Click (I think is something related to Ubuntu OS).
You should try changing the key to Ctrl in Selection > Switch to Ctrl+Click for Multi Cursor.
Didn't miss any of the stuff I had previously after switching to Ctrl.
Definitely the most urgent feature Visual Studio lacks.
Dave Parizek commented
@Admin Any updates on whether or not Visual Studio will add it? You have been evaluating since April.
Man, all editors have this already.
More than a year later. This feature is still not implemented