neuhawk

博客园 首页 新随笔 联系 订阅 管理
  重构(Refactor),相信已经是大家常用的方法,自从vs2005支持重构后,用起来非常顺手了.然而vss2005的重构功能毕竟还比较少.现向大家推荐一个由 Developer Express推出的免费VS add-on的重构工具Refactor! for ASP.NET.可以到 12-minute video overview先观赏以下视频,
目前能够支持asp.net的重构:
  1. Add Validator
  2. Extract ContentPlaceHolder
  3. Extract ContentPlaceHolder (and create master page)
  4. Extract Style (Class)
  5. Extract Style (id)
  6. Move to Code-behind
  7. Move Style Attributes to CSS
  8. Rename Style
  9. Surround with Update Panel

同时也支持16种常用的重构方法

  1. Extract Method
  2. Extract Property
  3. Flatten Conditional
  4. Inline Temp
  5. Introduce Constant
  6. Introduce Local
  7. Move Declaration near Reference
  8. Move Initialization to Declaration
  9. Reorder Parameters
  10. Rename
  11. Replace Temp with Query
  12. Reverse Conditional
  13. Safe Rename
  14. Simplify Expression
  15. Split Initialization from Declaration
  16. Split Temporary Variable

 

posted on 2007-02-03 14:13  neuhawk  阅读(3452)  评论(13)    收藏  举报