Dave Burke : Freelance .NET Web Developer specializing in Online Communities

VS2005 Refactoring Quick Series

I thought I'd put together a quick series of posts on the new refactoring functions in VS2005 with screenshots and a bit of code on each as necessary.  

The refactoring functions include

  • Extract Method
  • Rename
  • Encapsulate Field
  • Extract Interface
  • Promote Local Variable to Parameter
  • Remove Parameters
  • Reorder Parameters

What's particularly interesting to me is the intelligence and extent of the refactoring.  If you want to rename a property, method, class, namespace, whatever, VS2005 is smart enough to update all code impacted by that change.  If you refactor a method by removing a parameter, all calls anywhere to that method in any file will be updated accordingly.

If you want to read more, here is the Visual Studio 2005 Documentation on MSDN.

By the way, at last count ReSharper includes 17 refactoring functions.   I've not used ReSharper because it wasn't too long ago that I've discovered it and decided I would wait to see what was available in VS2005 in IDE advancements before buying the add-on.  Using these refactoring tools in VS2005 convinces me that I'll be buying and using ReSharper 2.0 with VS2005 support to get even more of this cool stuff.

 

Comments (0) | Post RSS RSS comment feed

Posted on 5/21/2005 1:50:00 PM by Dave Burke
Categories: .NET
Tags:

Related posts


Powered by BlogEngine.NET 2.0.0.36
Theme by Dave Burke