BT

CodeRush Xpress for C# Freely Available

| by Abel Avram Follow 12 Followers on Nov 06, 2008. Estimated reading time: 1 minute |

 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);
                   });
}

Rate this Article

Adoption Stage
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Discuss
BT