Welcome to MSDN Blogs Sign in | Join | Help

Visual Web Developer Team Blog

Your official information source from the Visual Web Developer team.

News

  • These postings are provided "AS IS" with no warranties, and confer no rights. Use of included code samples are subject to the terms specified Terms of Use
Free refactoring tools for ASP.NET code in Visual Studio 2005

DevExpress today announced the availability of Refactor! for ASP.NET -- a free add-on to Visual Studio 2005 that enables very cool refactoring capabilities for ASP.NET code. The add-on can be downloaded from here:

http://www.devexpress.com/refactorasp

The add-on includes the following ASP.NET refactorings:

  • Add Validator
  • Extract ContentPlaceHolder
  • Extract ContentPlaceHolder (and create master page)
  • Extract Style (Class)
  • Extract Style (id)
  • Move to Code-behind
  • Move Style Attributes to CSS
  • Rename Style
  • Surround with Update Panel

Here are some screenshots showing a few of the refactoring capabilities:

 

 

The add-on also includes the following "standard" refactorings that work inside <script> tags as well as inside *.cs and *.vb files belonging to an ASP.NET project:

  • Extract Method
  • Extract Property
  • Flatten Conditional
  • Inline Temp
  • Introduce Constant
  • Introduce Local
  • Move Declaration near Reference
  • Move Initialization to Declaration
  • Reorder Parameters
  • Rename
  • Replace Temp with Query
  • Reverse Conditional
  • Safe Rename
  • Simplify Expression
  • Split Initialization from Declaration
  • Split Temporary Variable

To learn more check out this great video tutorial showing the product in action.

If you are a source view junkie like myself, and do a lot of ASP.NET in Visual Studio 2005, I highly recommend grabbing this free add-on.  Enjoy!

-- Omar (Group Program Manager, WebTools Team)

Posted: Friday, February 02, 2007 3:50 PM by WebDevTools

Comments

Mighell's blog said:

Non sviluppo in ASP.net ma questo sembra un tool interessante: DevExpress today announced the availability

# February 3, 2007 2:47 PM

Antonio said:

# February 6, 2007 8:31 AM

TerryLee said:

Refactor!™ for ASP.NET是一款很酷的ASP.NET代码重构插件,可以集成到Visual Studio 2005中。提供的功能包括添加验证控件、提炼ContentPlaceHolder并创建母版页等,如下所示:

# February 7, 2007 2:33 AM

cnblogs.com said:

Refactor!&#8482; for ASP.NET 是一款很酷的 ASP.NET 代码重构插件,可以集成到 Visual Studio 2005 中。提供的功能包括添加验证控件、提炼 ContentPlaceHolder

# February 7, 2007 3:19 AM

CaffeineAddict said:

Hi,

I'm having trouble with this tool - its installed, but the only time i get a refactoring option is to rename a method. none of the great stuff you mention.

Any idea what the problem is?

# February 8, 2007 12:12 AM

Mark Miller said:

Refactor! is designed to be as unobtrusive as possible, so you won't see any menus or splash screens to alert you to its presence. Instead, you need to select the code or move the caret onto the element you want to change. Then you'll see a small smart tag near the caret telling you a refactoring is

available.

Refactor! for ASP.NET works in VS 2005, but will not work in earlier versions of VS. Also, it only works on code belonging to ASP.NET projects.

Note that some refactorings are not available yet on content pages, so if you're expecting a refactoring inside a page that is referred to by a ContentPlaceholder, that may be why you're not seeing what you're expecting.

Probably the easiest test is to move the caret onto an identifier or style that can be renamed and look for a smart tag beneath that identifier. If you don't see a smart tag and/or if pressing Ctrl+` (Ctrl plus the back-tick) fails to do anything, please contact support@devexpress.com and send them a small sample to help us reproduce the issue.

Also, for Surround with Update panel to be available, the Atlas extensions must be installed on your machine.

If you're still having trouble getting smart tags or the Refactor! popup menu to appear, please send a small sample ASP.NET project that we can reproduce the problem with to support@devexpress.com.

# February 8, 2007 1:30 PM

Oregon said:

Hi!

<a href= thanks for sharing ></a>   [url=thanks for sharing][/url]  

# February 12, 2007 10:07 AM

Crad said:

Hi!

<a href= 45e386443077da53fcfe55cc64300f01

></a>   [url=45e386443077da53fcfe55cc64300f01

][/url]  

# February 16, 2007 9:10 AM

Colin Bowern said:

Hopefully we'll see Expression Web sync in the next release for add-on architecture so my web designers can take advantage of the CSS refactoring. Visual Studio is too big for what they typically work with.

# February 21, 2007 8:34 PM

.NET un mundo por descubrir said:

Me acabo de encontrar con este add-on gratuito para Visual Studio 2005. Sirve para refactorizar el código

# March 4, 2007 4:06 PM

.NET un mundo por descubrir said:

Me acabo de encontrar con este add-on gratuito para Visual Studio 2005. Sirve para refactorizar el código

# March 4, 2007 4:06 PM

Sergio Tarrillo's Blog -> enhancements said:

Leía el post de Eugenio: Refactor!™ for ASP.NET (descarga gratuita cuando se redacto este post),...

# March 4, 2007 10:24 PM

SergioTarrillo's RichWeblog said:

Leía el post de Eugenio : Refactor!™ for ASP.NET (descarga gratuita cuando se redacto este post), e inmediatamente

# March 4, 2007 10:24 PM

Your Websites, Our Passion! said:

A while back I posted about some great free refactoring tools for ASP.NET. The folks at Developer Express

# May 8, 2007 2:44 PM

m2land said:

今天升级到VS2008,在写代码时想做一些重构(refactor)的操作,却发现VS的重构没有提供提取常量(extractconstant的功能。查找了一下,找到了这个著名的第三方重构插件:Ref...

# September 29, 2008 6:06 AM
New Comments to this post are disabled
Page view tracker