Wednesday, October 11, 2006

VS 2005 and Refactoring

VS 2005 has a new context menu item titled "Refactor". It has all sorts of goodies (check the image below).



I would have given quite a bit of money for any one of these options and now they're all included for "free".

The Rename option changes all references to a property or method (does not just do a find and replace). The coolest option that I saw was the Extract Method option. It allows you to hightlight some code and then it pulls the selected code into a new method and pulls in the needed variables and references.

I am most definately sold on this VS 2005 thing.

No comments: