Rename feature in Visual Studio 2010

Posted By  jalpesh On 11 May 2010 08:05:44
emailbookmarkadd commentsprint
No of Views:925
Bookmarked:0 times
Votes:0 times

Introduction

Visual web developer is great tool and I am playing more and more with it and every time I am discovering some new features of it. Recently I have discovered a very cool feature of it.

 I want to rename a variable in visual studio 2010 Web Developer express edition and I found a great refractor tool for that which will rename that variable in all the instance and all the methods. First you need to select variable which you want to rename and then you need to Right Click ->Refractor->Rename. You can also invoke that via its shortcut Ctrl + R,Ctrl +R and it will be available For reference see the below screenshot.

 

Image Loading

Once you click the rename which will have a dialog box open which will ask for new name or variable like following.

 

Image Loading

It is also having options for search in comments and search in string. Search in comment will search and replace in comment and search in string will replace word for any string which contains that variable name. Once you put new name in dialog box it will display a preview of replaced strings like following. Here also you can select where you need to rename and where you don’t want to rename and this is really cool. :)

 

Image Loading

Enjoy the new features in visual studio 2010.

Sign Up to vote for this article
Other popular Tips/Tricks
    In this tips, I'm going to explain how to do box selection in visual studio 2010.
    Published Date : 06/Aug/2011
    Microsoft Visual Studio 2010 is a great IDE and everyday I am discovering something new about it. Today I am also going to explain new feature of Visual Studio 2010. In this post I am going to Transact SQL Editor feature in Visual Studio 2010.
    Published Date : 06/Aug/2011
    In this tip we are going to see an new feature for multi monitor support in Visual Studio 2010. In Visual Studio 2010 you can drag windows outside IDE and thus you can use in different monitor
    Published Date : 22/Jan/2011
    Some time while you are testing you need to debug some things in your asp.net application
    Published Date : 11/Jun/2010
    There are times when you will want to share the same source code among several projects. A common way to do so is with a shared assembly; you put common functionality in one project and then share the output among several other projects.
    Published Date : 11/Jun/2010
Comments
There is no comments for this articles.
Leave a Reply
Title:
Display Name:
Email:
(not display in page for the security purphase)
Website:
Message:
Please refresh your screen using Ctrl+F5
If you can't read this number refresh your screen
Please input the anti-spam code that you can read in the image.
^ Scroll to Top