Simultaneously edit in more than one location in the editor
If you've ever ran into a case where you wanted to quickly change variable names or multiple loop conditions - you can use Multi-Edit to set virtual carets that all behave the same.
It needs pasting capability added to it to be really perfect. Apart from that, it is an excellent plugin and it should be made as an integral part of Visual Studio. Great Job!
Didn't realize how much I used this until I found myself constantly alt-clicking on a new install and constantly being frustrated. This little extension packs a big feature into such a simple action.
It's not managing AutoCompletion. Example when I want to change the class in multiple sentences, and autocomplete shows up, I press Enter, and the change is made only in one place the other locations are not affected.
Excellent! This is one of the things I'm used to in Sublime Text 2. Now there's one less reason to keep another editor up.
A week on and I'm falling out of love with this. All is well while I'm doing simple stuff, but as soon as I type an open parenthesis ( or anything else VS reckons to understand as something that needs a matching closer such as a quote " VS kicks in and adds in the closer only to one of my many carets, or it may provide autocomplete for a single instance. It wouldn't be so bad if, when it had dropped my multiple carets to perform the autocomplete it carried on with a single instance - at least then I'd be able to go back to the others and continue - maybe one at a time. As it is I get autocomplete on one caret but then continue on multiple carets out of sync.
Sublime Text 2 manages to implement its autocomplete on all instances.
You're more than welcome. Go ahead and vote on this if you want to see it in the product: http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/3649766-add-simultaneous-multi-caret-editing-to-visual-stu
Great tool; simple and fast.
One suggestion is adding support for paste.
Most of the times I already copied the text I want to insert on multi locations defined by your tool. But when pasting (Ctrl V or right-click paste) it will only only insert on the last location.
Oh and there's no link to here in the Extensions window in VS.
Keep up the great work.
Great idea though selecting with the mouse is a bit slow.
Please take a look at Sublimetext http://www.sublimetext.com - it's very easy to select with Ctrl+d and split a selection with ctrl+shift+l.
Could you add something similar?
Ok I figure it out, it's because of a problem I have with the Visual Studio version selector (I have VS 2010's version selector even though I have VS 2012 installed!), you can safetly ignore this :)
http://www.skorkin.com/2011/06/how-to-implement-the-sync-edit-feature-from-delphi-ide-inside-visual-studio-ide-using-dxcore/#.URMV7idqnwk
It is more intuitive to automatically select items instead of asking users to manually select.
Hey Lex - I want the MultiEdit extension to do one thing really well (I still have to polish it more), and nothing else. My guess is that SyncEdit is doable , it could be a good exercise for you to write your own extension (and share it with the world)
I'm writing a tutorial on how to create extensions like MultiEdit, would that be interesting for you?
Check out http://www.alashiban.com/multi-editing-tutorial/ - It's still being modified and tuned (comments would be great). The implementation for this extension is very different, but this gives an idea on how to create editor extensions
Hi Ala Shiban.
First of all, the tool is very good and should be a std feature of the editor.
I have found a little problem related to the interaction of the Visual Basic editor Autocompletion features with your tool.
If you could check it for the next releases it would be great!
Here and example:
1. Start
Me.TotalAmountTextBox
Me.NumberTextBox
Me.CustomerOrderTextBox
2. Select the end of the 3 rows and start typing "databindings...."
3. The result:
Me.TotalAmountTextBox.d(a)tabindings("Text").nullvalue=string.empty
Me.NumberTextBox.d(a)tabindings("Text").nullvalue=string.empty
Me.CustomerOrderTextBox.d(a)tabindings("Text").nullvalue=string.empty
thank you very much
Alberto
Great to see this functionality making its way into VS. I use sublime text and it allows you to make a selection then ctrl & d will select the next matching string, press ctrl & d will get the next one, then you can multi edit, does the MultiEditing component support this?
Would it be possible to allow installation into VS2012 Shell?
It does not want to install.
Is it only for C# or does it work on any text based file in VS?