Improved Rename Refactoring - or why you should use F2

Discussion to talk about software related topics only.
Post Reply
User avatar
tod
Posts: 587
Joined: Sat Apr 26, 2008 8:27 am
Location: Southern California
Contact:

Improved Rename Refactoring - or why you should use F2

Post by tod »

Every time you go to rename something in your source code with Eclipse try to get in the habit of hitting F2 to do it. This invokes the rename refactoring. It is improved in the Indigo release (NBECilpse NNDK 2.6.x) , you no longer get a dialog, it just does an in-place rename. If you rename in a library it will not only rename all the usages in the library it will rename all the places that use that library. Now it does confuse Codan a little in the related projects so to clean up those just right-click on the file in the Project Explorer tab and select Index->Update with modified files.
Post Reply