Visual Studio代码重构插件Refactor! Pro

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

image

 

支持的重构
Add AssociatedControlID AttributeAdd Block DelimitersAdd End Tag
Add ParameterAdd RunAt AttributeAdd to Interface
Add ValidatorBoolean to EnumBreak Apart Arguments
Break Apart ParametersCase to ConditionalChange Tag
Collapse AccessorsCombine ConditionalsCompress to Lambda Expression
Compress to Null Coalescing OperationCompress to Ternary ExpressionConditional to Case
Consolidate Using StatementsConvert to Auto-implemented PropertyConvert to Auto-implemented Property (convert all)
Convert to Built-in TypeConvert to Create & Set Convert to HEX
Convert to InitializerConvert to IsNothingConvert to Named Color
Convert to PixelsConvert to PointsConvert to RGB
Convert to SkinConvert to System TypeCreate Backing Store
Create Method ContractCreate Method StubCreate Multi-variable Declaration
Create OverloadCreate Setter MethodCreate With Statement
Decompose ParameterEncapsulate DowncastEncapsulate Field
Expand AccessorsExpand Lambda ExpressionExpand Null Coalescing Operation
Expand Ternary ExpressionExtract ContentPlaceHolderExtract ContentPlaceHolder (Create Master)
Extract Function (outside of class)Extract InterfaceExtract Method
Extract PropertyExtract ScriptExtract String to Resource
Extract Style (Class)Extract Style (id)Extract to User Control
Extract to XAML ResourceExtract to XAML Resource (replace all)Extract XML Literal to Resource
Flatten ConditionalFor to ForEachForEach to For
Inline AliasInline ConstantInline Delegate
Inline Format ItemInline MacroInline Recent Assignment
Inline ResultInline TempInline With Statement
Introduce AliasIntroduce Alias (replace all)Introduce Constant
Introduce ForEach ActionIntroduce Format ItemIntroduce Local
Introduce Local (replace all)Introduce Parameter ObjectIntroduce Result Variable
Introduce Setter Guard ClauseIntroduce Using StatementLine-up Arguments
Line-up ParametersLock to Try/FinallyMake Explicit
Make Explicit (and Name Anonymous Type)Make Id UniqueMake Implicit
Make Method StaticMerge StylesMethod to Property
Move Declaration Near ReferenceMove Initialization to DeclarationMove Method to Header
Move Method to Source FileMove Style Attributes to CSSMove Style Attributes to External CSS
Move Style Attributes to ThemeMove Style Attributes to Theme (use SkinId)Move to Code-behind
Move Type to FileMove Type to NamespaceName Anonymous Method
Name Anonymous TypeOptimize Namespace ReferencesPromote to Parameter
Property to MethodReduce VisibilityRemove Assignments to Parameters
Remove AttributeRemove Block DelimitersRemove Empty Handler
Remove End TagRemove ParameterRemove Private Setter
Remove Redundant AssignmentRemove Redundant ConditionalRemove Setter Guard Clause
Remove TagRemove Type QualifierRemove Type Qualifier (replace all)
RenameRename File to Match TypeRename Type to Match File
Reorder AttributesReorder ParametersReplace Temp with Query
Replace with AliasReplace with ConstantReplace with Local
Replace with XAML ResourceReverse ConditionalSafe Rename
Set CssClassSimplify ExpressionSplit Conditional
Split Initialization from DeclarationSplit Multi-variable DeclarationSplit Style
Split Temporary VariableSplit With StatementSurround with Tag
Surround with Update PanelToggle ViewStateUse Const (C++ only)
Use IsNullOrEmptyUse String.CompareUse String.Format
Use StringBuilderUse 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/

转载于:https://www.cnblogs.com/DotNetNuke/archive/2008/09/29/1302221.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值