Visual Studio代码重构插件Refactor! Pro

简介: 今天升级到VS 2008,在写代码时想做一些重构(refactor)的操作,却发现VS的重构没有提供提取常量(extract constant)的功能。查找了一下,找到了这个著名的第三方重构插件:Refactor!™ Pro   支持的重构 Add Assoc...

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

image

 

支持的重构

Add AssociatedControlID Attribute Add Block Delimiters Add End Tag
Add Parameter Add RunAt Attribute Add to Interface
Add Validator Boolean to Enum Break Apart Arguments
Break Apart Parameters Case to Conditional Change Tag
Collapse Accessors Combine Conditionals Compress to Lambda Expression
Compress to Null Coalescing Operation Compress to Ternary Expression Conditional to Case
Consolidate Using Statements Convert to Auto-implemented Property Convert to Auto-implemented Property (convert all)
Convert to Built-in Type Convert to Create & Set Convert to HEX
Convert to Initializer Convert to IsNothing Convert to Named Color
Convert to Pixels Convert to Points Convert to RGB
Convert to Skin Convert to System Type Create Backing Store
Create Method Contract Create Method Stub Create Multi-variable Declaration
Create Overload Create Setter Method Create With Statement
Decompose Parameter Encapsulate Downcast Encapsulate Field
Expand Accessors Expand Lambda Expression Expand Null Coalescing Operation
Expand Ternary Expression Extract ContentPlaceHolder Extract ContentPlaceHolder (Create Master)
Extract Function (outside of class) Extract Interface Extract Method
Extract Property Extract Script Extract String to Resource
Extract Style (Class) Extract Style (id) Extract to User Control
Extract to XAML Resource Extract to XAML Resource (replace all) Extract XML Literal to Resource
Flatten Conditional For to ForEach ForEach to For
Inline Alias Inline Constant Inline Delegate
Inline Format Item Inline Macro Inline Recent Assignment
Inline Result Inline Temp Inline With Statement
Introduce Alias Introduce Alias (replace all) Introduce Constant
Introduce ForEach Action Introduce Format Item Introduce Local
Introduce Local (replace all) Introduce Parameter Object Introduce Result Variable
Introduce Setter Guard Clause Introduce Using Statement Line-up Arguments
Line-up Parameters Lock to Try/Finally Make Explicit
Make Explicit (and Name Anonymous Type) Make Id Unique Make Implicit
Make Method Static Merge Styles Method to Property
Move Declaration Near Reference Move Initialization to Declaration Move Method to Header
Move Method to Source File Move Style Attributes to CSS Move Style Attributes to External CSS
Move Style Attributes to Theme Move Style Attributes to Theme (use SkinId) Move to Code-behind
Move Type to File Move Type to Namespace Name Anonymous Method
Name Anonymous Type Optimize Namespace References Promote to Parameter
Property to Method Reduce Visibility Remove Assignments to Parameters
Remove Attribute Remove Block Delimiters Remove Empty Handler
Remove End Tag Remove Parameter Remove Private Setter
Remove Redundant Assignment Remove Redundant Conditional Remove Setter Guard Clause
Remove Tag Remove Type Qualifier Remove Type Qualifier (replace all)
Rename Rename File to Match Type Rename Type to Match File
Reorder Attributes Reorder Parameters Replace Temp with Query
Replace with Alias Replace with Constant Replace with Local
Replace with XAML Resource Reverse Conditional Safe Rename
Set CssClass Simplify Expression Split Conditional
Split Initialization from Declaration Split Multi-variable Declaration Split Style
Split Temporary Variable Split With Statement Surround with Tag
Surround with Update Panel Toggle ViewState Use Const (C++ only)
Use IsNullOrEmpty Use String.Compare Use String.Format
Use StringBuilder Use typedef (C++ only) Using to Try/Finally
Widen Scope (promote constant) Widen Scope (promote to field)

博客园老李早有介绍:http://www.cnblogs.com/Terrylee/archive/2007/02/07/free_refactoring_tools_for_aspnet.html

其它参考文档:Free refactoring tools for ASP.NET code in Visual Studio 2005

 

试用版下载:

http://www.devexpress.com/Downloads/Visual_Studio_Add-in/Refactoring/

目录
相关文章
|
18天前
|
JavaScript C# 开发工具
22款Visual Studio Code实用插件推荐
Visual Studio Code是一个轻量级但功能强大的源代码编辑器,轻量级指的是下载下来的Visual Studio Code其实就是一个简单的编辑器,强大指的是支持多种语言的环境插件拓展,也正是因为这种支持插件式安装环境开发让Visual Studio Code成为了开发语言工具中的霸主,让其同时支持开发多种语言成为了可能。俗话说的好:“工欲善其事,必先利其器”,安装一些实用插件对自己日常的开发和工作效率能够大大的提升,避免996从选一款好的开发插件开始。以下是我整理的一些比较实用的Visual Studio Code插件希望对大家有用,大家有更好的插件推荐可在文末留言🤞。
|
3月前
|
Go
VsCode(Visual Studio Code) 安装插件教程
VsCode(Visual Studio Code) 安装插件教程
92 0
|
7月前
|
前端开发 JavaScript PHP
Visual Studio Code的使用心得与常用免费插件使用技巧大全总结 老板夸奖我是开发小能手!
这就是我一直在使用的免费代码编辑神器, 它的优点太多了, 有: 智能感知、代码调试、内置 Git 命令、可扩展和可定制都相当牛,最关键的是免费开源!!
206 3
Visual Studio Code的使用心得与常用免费插件使用技巧大全总结 老板夸奖我是开发小能手!
|
10月前
|
XML JavaScript 前端开发
Visual Studio Code 珍藏好久的插件推荐(上)
Visual Studio Code 珍藏好久的插件推荐(上)
Visual Studio Code 珍藏好久的插件推荐(上)
|
XML 数据库连接 开发工具
Visual Studio Package 插件开发之自动生成实体工具(Visual Studio SDK)(二)
Visual Studio Package 插件开发之自动生成实体工具(Visual Studio SDK)(二)
125 0
Visual Studio Package 插件开发之自动生成实体工具(Visual Studio SDK)(二)
|
XML 测试技术 持续交付
Visual Studio Package 插件开发(Visual Studio SDK)(一)
Visual Studio Package 插件开发(Visual Studio SDK)(一)
261 0
Visual Studio Package 插件开发(Visual Studio SDK)(一)
|
JavaScript
编写Visual Studio Code插件初尝试
根据VS Code官方入门文档编写一个最简单的插件. Write a simple hello-world extension for Visual Studio Code.
917 0
|
Web App开发 JavaScript 前端开发
30个极大提高开发效率的Visual Studio Code插件
译者按: 看完这篇文章,我打算从 Sublime Text 转到 Visual Studio Code 了! 原文: Immensely upgrade your development environment with these Visual Studio Code extensions 译者: Fundebug 为了保证可读性,本文采用意译而非直译。
2048 0