Free .NET Refactoring Tools
By admin on Sep 9, 2007 in .NET, Programming
I have been using the following free refactoring tools for .NET development.
Visual Studio.NET Built-In Refactoring Functions for C#
Unfortunately the built-in refactoring functions are only available for C#. You can use the refactoring functions to
- rename a namespace, type, field, variable, method, or method parameter seamlessly.
- decompose the lengthy method into shorter sub-methods
- encapsulates access to a class field by creating property accessors by generating a property wrapper around a specified class member.
- provide a common interface for two or more classes that have identical structure but differing implementations.
- promote a local variable in a method to a parameter.
- remove one or more parameters from a method and update all the calls to the method accordingly.
- reorder the parameters in a method.
Refactor! for Visual Basic 2008
Do not confused by the the year 2008. Refactor! for Visual Basic 2008 is a VS.NET add-in that you can use for VS.NET 2005, although in the website VS.NET 2008 is mentioned.
The free version of Refactor! for Visual Basic supports the following refactoring operations:
- Reorder Parameters
- Extract Method
- Extract Property
- Create Overload
- Surrounds With
- Encapsulate field
- Reverse Conditional
- Simplify expression
- Introduce Local
- Introduce constant
- Inline Temp
- Replace Temp with Query
- Split Temporary Variable
- Move initialization to declaration
- Split initialization from declaration
- Move declaration near reference
- Create With Statement
- Extract Interface
- Inline With Statement
- Introduce Parameter
- Method to Property
- Property to Method(s)
- Remove Unused Parameter
- Widen Scope
- Extract XML Literals to Resource
- Make Explicit
- Make Explicit (and Name Anonymous Type)
- Make Implicit
- Move Type to File
- Name Anonymous Type
You can download Refactor! for Visual Basic 2008 from http://www.devexpress.com/Products/NET/IDETools/VBRefactor/
Refactor!™ for ASP.NET
Refactor! for ASP.NET is a VS.NET 2005 add-in that simplifies and shapes complex code and HTML markup – making your web applications easier to read and less costly to maintain.
The following refactoring operations are supported:
- Add Validator
- Create Overload
- Encapsulate Field
- Extract ContentPlaceHolder
- Extract ContentPlaceHolder (create master page)
- Extract Method
- Extract Property
- Extract Style (Class)
- Extract Style (id)
- Extract to User Control
- Flatten Conditional
- Inline Temp
- Introduce Constant
- Introduce Local
- Introduce Local (replace all)
- Move Declaration Near Reference
- Move Initialization to Declaration
- Move Style Attributes to CSS
- Move to Code-behind
- Rename
- Reorder Parameters
- Replace Temp with Query
- Reverse Conditional
- Safe Rename
- Simplify Expression
- Split Initialization from Declaration
- Split Temporary Variable
- Surround with Update Panel
You can download Refactor! for ASP.NET from http://www.devexpress.com/Products/NET/IDETools/RefactorASP/
Refactor!™ for C++
Refactor! for C++ is a VS.NET 2005 add-in that simplifies and shapes complex code, whether native or managed – making it easier to read and less costly to maintain.
The following refactoring operations are supported:
- Add Block Delimiters
- Case to Conditional
- Conditional to Case
- Create Overload
- Encapsulate Field
- Extract Function (outside of class)
- Extract Method
- Introduce Constant
- Move Method to Header
- Move Method to Source File
- Remove Block Delimiters
- Rename
- Reorder Parameters
- Reverse Conditional
- Simplify Expression
- Widen Scope
You can download Refactor! for C++ from http://www.devexpress.com/Products/NET/IDETools/RefactorCPP/
Resource Refactoring Tool from CodePlex
Resource Refactoring Tool provides developers an easy way to extract hard coded strings from the code to resource files.
Features for Resource Refactoring Tool
- Works with C#, VB.Net languages. Supports all project types that ships with Visual Studio 2005 including web sites and web application projects.
- A preview window to show changes.
- Finds other instances of the text being replaced in the project automatically.
- Lists existing resources by their similarity level to the text being replaced.
- Automatically replaces hard coded string with a reference to resource entry.
You can download Resource Refactoring Tool from http://www.codeplex.com/ResourceRefactoring
John Prado | Sep 12, 2007 | Reply
Very nice, I’m looking for some of these free refactor tools.
Tnx for the list
dee | Dec 12, 2008 | Reply
Does anybody knows about installing for example both “Refactor! for Visual Basic 2008” and “Refactor!™ for ASP.NET”? Can I expect any problems if do so?
Thanks