[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Collapse]CodeRush
  System Requirements
  Improve Performance
 [Expand]Features by Language
 [Collapse]Getting Started
   First Steps
   Training Window
   Migrating from CodeRush Classic
 [Expand]How To
 [Expand]Coding Assistance
 [Expand]Navigation and Search Tools
 [Expand]Static Code Analysis
 [Expand]Visualization Tools
 [Expand]Code Style Assistance
  Building Assistance
  Debugging Assistance
 [Expand]Refactoring Assistance
 [Expand]Unit Testing Assistance
 [Expand]Decompiling Tools
 [Expand]Configuration Options
 [Expand]Extensibility
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

First Steps

After you install the CodeRush extension you can notice the CodeRush menu and toolbars.

Note

You can restore the default CodeRush menu position in Visual Studio 2019 (the CodeRush menu is nested inside Visual Studio Extensions menu). Enable the «Nest the CodeRush menu inside the Visual Studio Extensions menu (restart required)» option in the Quick Setup options page. This option is available for Visual Studio 2019.

Expanded CodeRush Toolbars

CodeRush provides CodeRush Debug and CodeRush Visualize toolbars.

The CodeRush Visualize toolbar allows you to control the main CodeRush features.

The following toolbar buttons enable or disable the respective features.

Button Feature Description
Member Icons Supplements each class member with a corresponding icon.
Structural Highlighting This feature allows you to see the structure of your code.
Region Painting Adds a custom #region directive representation that reduces visual noise to make the code look clearer.
Right Margin Line Right margin line helps you limit the code line's length.
IntelliRush The IntelliSense extension used to improve the IntelliSense Members List menu.
Stop Build on Error When you enable this feature, CodeRush stops building a solution if a project build fails and Visual Studio attempts to build a dependent project.
Code Metrics A set of measures that allow developers to estimate code complexity. Use this button to see Code Metric values in the code editor.
Spell Checker Highlights misspelled words and provides correction options.
Rich Comments Applies text formatting to comments in the Visual Studio code editor.
Code Cleanup Brings any code up to predefined standards.

Use the following buttons to run your NUnit, xUnit, MSpec, or MSTest unit tests and debug them:

  • - executes active tests
  • - executes all tests in the entire solution
  • - executes active tests in the debug mode
  • - executes active tests with coverage
  • - executes all tests in the entire solution with coverage
  • - repeats the last test execution
  • - stops running tests

The CodeRush Debug toolbar is used to control the Debugging features.

Expanded Setup Wizard

When you open the first solution with CodeRush installed, the Setup Wizard notification pops up. The Setup Wizard guides you through the main features (disabled by default), and allows you to turn them on. The Setup Wizard is available in the CodeRush menu if you dismissed the notification.

Expanded Quick Setup Options Page

You can enable/disable CodeRush main features on the Quick Setup options page.

To open this page:

  • select "CodeRush\Options..." from the Visual Studio menu.

  • select the "Quick Setup" options page in the tree view.

Use the "learn more" link for each CodeRush feature to quickly access the corresponding configuration options page.

For example, the image below shows the Auto Completion (IntelliRush) options page.

Expanded Code Templates

Code Templates are blocks of code that expand from short abbreviations typed into the code editor. Code templates provide you with the ability to insert boilerplate code sections with a few keystrokes instead of entering the code manually.

Expanded Context-Aware Features

You can access context-aware features from the Code Actions (Light Bulb) Menu. A Light Bulb is a default Visual Studio feature with Visual Studio actions. The icons in this menu help you distinguish between CodeRush actions and default actions.

The list below shows the main CodeRush features that you can access in the Light Bulb menu:

Note

To see the list of available actions, hit Ctrl + . or Ctrl + ~ at any place in your code to invoke the Light Bulb menu.

Expanded Navigation Features

CodeRush provides a set of navigation tools. These tools allow you to quickly find symbols and files in your solution and navigate to code constructions related to the current context. Use the Jump to window to navigate to the places linked with the current symbol. Hit Ctrl + Alt + N to invoke this window when the caret is on the symbol.

Expanded Test Runner

CodeRush includes a powerful unit testing tool - Unit Test Runner. It supports the following testing frameworks:

Use the CodeRush | Test | Test Runner menu item to open the main Test Runner window. It displays the list of discovered unit tests in the solution and allows you to run them and see the results.

Test Runner can also calculate code coverage. Use the Run (all) with coverage () button, then open the Code Coverage window and analyze the result.

Note

In most cases, CodeRush determines the appropriate testing framework automatically. If you experience any issues, refer to the Testing Framework Configuration article.

Expanded Code Style

The Code Style features help you maintain your code's standards.

You can configure the Programming Style Rules and Naming Conventions according to your style. CodeRush considers these settings in Code Cleanup and code-generation features (for example, Code Templates, Code Providers, etc.).

CodeRush makes software creation easier in different ways. Start by learning the features presented above, then see the documentation link to familiarize yourself with the rest of the CodeRush capabilities.

Is this topic helpful?​​​​​​​