Home > Overview, Overview > CodeRush Xpress refactoring features

CodeRush Xpress refactoring features

July 7th, 2010

Refactoring is a powerful way to improve the quality and flexibility of your code, without changing program behavior. Well-refactored code costs less to maintain, is easier to extend, and is a more valuable asset than code that is allowed to accumulate technical debt (also referred to as design debt).

CodeRush Xpress includes over 60 refactorings, and nearly all work in both C# and Visual Basic. A few refactorings are available in only a single language due to features of that particular language.

For example, Inline With Statement and Create With Statement are both available in Visual Basic. Similarly, refactorings to Add Block Delimiters and Remove Block Delimiters are only available in CSharp.

In some cases CodeRush Xpress provides wrappers for existing refactorings in either language. These wrappers ensure a more complete experience, making all refactorings contextually available in one location, accessed from a single keystroke (Ctrl+`). In many cases wrappers will also implement a preview hint, so you can see the impact of the changes before you commit. Wrappers are indicated in the refactoring menu with a Visual Studio icon.

Here you’ll find descriptions for all refactorings shipping inside CodeRush Xpress, arranged by the following categories:

Changing Signatures


  • Combine Conditionals
  • Compress to Ternary Expression
  • Expand Ternary Expression
  • Flatten Conditional
  • Reverse Conditional
  • Split Conditional

Declaration & Initialization


  • Inline Temp
  • Introduce Constant
  • Introduce Constant (local)
  • Introduce Local
  • Introduce Local (replace all)
  • Simplify Expression


Lambda Expressions & Anonymous Methods

Loops & Blocks

Properties & Fields

Moving/Extracting Methods

  • Extract Method
  • Extract Method to Type
  • Extract Property
  • Replace Temp with Query

Resource Files & Strings


  • Move Type to File


Consult the Visual Studio help after installing CodeRush Xpress for additional details and example code in both CSharp and Visual Basic demonstrating these refactorings in action.

Products: CodeRush Xpress
Versions: 11.2 and up
VS IDEs: 2008 and 2010
Updated: Aug/01/2012
ID: C007

Similar Posts: