views:

198

answers:

3

There is a feature in Delphi IDE (Borland Developer Studio 2006) which allows to edit some variable in "sync mode". For example if you have a code snippet like this: 2qdo8sz.png

You can select the text you want to modify (in this case the complete procedure) and start editing a variable name. It will be edited at all the places (except string literals): dzvyi9.png

It is different from refactoring since the scope of change is limited. Its simple and fast. I loved this facility.

Now I have started using Visual Studio for past some time and miss something like this. Please can you suggest anything to achieve the same effect in Visual Studio?

+5  A: 

For this feature you will probably have to use CodeRush from Dev Express.

It has something similar to this.

Yogi Yang 007
+1  A: 

In Visual Studio 2005/2008 there is a similar feature. If you edit for example a variable or method name, a little red box appears at the bottom right side of the word. Click it or press Shift + Alt + F10 to open a small menu that allows you to rename all occurances of the identifier. However, that does not work for comments.

Thorsten Dittmar
This is more like a rename refactoring. Delphi's SyncEdit is more of a live renaming that only affects identifiers in the selected text. It demos well, too. :) I like the idea of getting away from modal dialog boxes. For Visual Studio, CodeRush is the way to go.
Bruce McGee
A: 

ReSharper for local renames does exactly this.

Ilya Ryzhenkov