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 this extension to set virtual carets that all behave the same.
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 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?
Ctrl+Shift+L and Ctrl+D are already in use.
Ctrl+Alt+L : View.SolutionExplorer
Ctrl+D : WindowsAzure.ShowMobileServiceScriptErrorDetails
Ctrl+D : Format.TabOrder
Ctrl+D : Edit.GoToFindCombo
With all the shortcuts that are used by Visual Studio plus any extras you might get with tools like ReSharper, how many shortcut are left?
I can't imagine how difficult it is to come up with new shortcuts.
We use Ctrl+K,C to comment and Ctrl+K,U to uncomment. But we couldn't use Ctrl+C,K to uncomment because Ctrl+C is in use. I didn't program this and don't know why they couldn't just have Ctrl+K,C do both the commenting and uncommenting.
mc/insert-numbers: Insert increasing numbers for each cursor, top to bottom.
mc/insert-letters: Insert increasing letters for each cursor, top to bottom.
Hi, I need to do partial selection for multiple lines but I couldn't get it to work.
Here is how I approached it:
- Alt + click to put multiple cursor on different places in my code.
- Hold Shift and left or right arrow keys to select part of each line all together but I only get selection for the first line.
Not sure if I am doing it wrong or there is no support for it yet.
If it is not implemented yet, it would be really great for productivity to have this feature (just like sublime text)
when i alt drag over a couple of lines i have the following problem:
all my actions are executed twice
this is probably because visual studio supports the same feature.
Can anyone confirm this bug?
First of all, thanks a lot for your great work on this plugin :)
In Sublime Text, I can hold Ctrl, select multiple texts, and start typing to overwrite all instances at once.
1. Is this possible with MultiEditing plugin? If so, how?
2. If not, any plans to implement this?
Thanks again for the awesome plugin :)
Great tool Ala!
I've been using it ever since V1.0 and I love it! But now I got a new computer with Windows 8 on it and now for some reason MultiEditing only works in C# files. Have you had anyone else with this problem?
I uninstalled all other extensions to see if that was breaking it and I was still seeing the same behavior.
I can confirm the issue. I am also having issues on file types other than CS. JS, CSS, VB files don't seem to work. I doubt this has anything to do with it, but I'm on Windows 7 x64. I'm using VS 2012.2.
So a friend of mine had version 1.2 installed and after upgrading to 1.3 the extension stopped working in all files except for C#. So that is the most likely culprit right now.
I downloaded the source and through the debugger I saw that on the C# text editor was getting the left mouse click events. The other files were however receiving the other commands correctly.
TBH I'm not 100% sure how the Exec function ties into the text editors events. It seems like everything gets wired up properly except for the left click event.
This tool is just what I have been looking for for AGES. Who knows how many hours of tedious nonsense I would have saved myself from if VS had ever had this functionality. Unfortunately, I am also running into the problem where it will only work with C# files. Are there any known tweaks/fixes for this problem yet? I mainly work with C++ and would love to be able to use it with that.
I looked into the issue and it seems to be a command routing issue (something is getting before me in processing the events)
I'm trying to figure out if there's a workaround.
As for saving time with the functionality - I'd love us to build stuff when their missing. (That's why I posted the source)
I work on the Editor and we have exciting stuff coming, but in most cases, there'll always be a feature someone needs - and in that case - Build and share <3
I'll keep trying to figure out a way around the bug
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:
2. Select the end of the 3 rows and start typing "databindings...."
3. The result:
thank you very much