InfoQ

InfoQ

News

My Bookmarks

Login or Register to enable bookmarks for unlimited time.

The content has been bookmarked!

There was an error bookmarking this content! Please retry.

CodeRush Xpress for C# Freely Available

Posted by Abel Avram on Nov 06, 2008

Sections
Development
Topics
Artifacts & Tools ,
Visual Studio ,
.NET ,
Microsoft ,
Tools ,
IDE ,
Programming ,
Agile ,
Refactoring ,
Companies

 DevExpress has announced the availability of CodeRush Xpress for C#, a free add-in for Visual Studio 2008, targeted at C# developers and meant to improve their coding experience. CodeRush Xpress offers code navigation features like Highlight All References, Smart Clipboard Operations, Generate from Using (TDD), and 25 code refactoring features like Make Explicit, Make Implicit, Name Anonymous Type, and others.

DevExpress and Microsoft have jointly released CodeRush Xpress for C# for free, a helpful add-in containing some of the features found in CodeRush and Refactor! Pro. The tool eases the work of developers by helping them navigating and refactoring the code more easily. CodeRush Xpress contains the following code navigation features:

  • Duplicate Line
  • Highlight All References
  • Increase or Reduce Selection
  • Smart Clipboard Operations
  • Generate from Using (TDD)
  • Quick Navigation Window
  • Quick File Navigation

It also contains the following refactoring features:

  • Add Block Delimiters
  • Combine Conditionals
  • Compress to Lambda Expression
  • Compress to Ternary Expression
  • Convert to Auto-implemented Property
  • Convert to Initializer
  • Create Backing Store
  • Decompose Initializer
  • Decompose Parameter
  • Expand Lambda Expression
  • Expand Ternary Expression
  • Extract Method
  • Flatten Conditional
  • Inline Delegate
  • Inline Temp
  • Introduce Local
  • Make Explicit
  • Make Implicit
  • Move Type to File
  • Name Anonymous Method
  • Name Anonymous Type
  • Reverse Conditional
  • Split Conditional
  • Use String.Format
  • Use StringBuilder

A series of examples are presented on MSDN site like this one. Considering the following code:

private static void ShowInt(int n) {
Console.WriteLine(n);
}
private static void ShowEntries(List entries) {
   entries.ForEach((Action)ShowInt);
}

Pressing the Refactoring key, the Refactor dialog appears:

refactor

By choosing Inline Delegate, the following code results:

private static void ShowEntries(List entries) {
   entries.ForEach(delegate(int n)
{
Console.WriteLine(n);
                   });
}
  • This article is part of a featured topic series on Agile

No comments

Watch Thread Reply