重构(Refactor),相信已经是大家常用的方法,自从vs2005支持重构后,用起来非常顺手了.然而vss2005的重构功能毕竟还比较少.现向大家推荐一个由
Developer Express推出的免费VS add-on的重构工具
Refactor! for ASP.NET.可以到
12-minute video overview先观赏以下视频,
目前能够支持asp.net的重构:
目前能够支持asp.net的重构:
- 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
同时也支持16种常用的重构方法
- 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
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/12639172/viewspace-330934/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/12639172/viewspace-330934/