Skip to main content
A newer version of this page is available. .

First Steps

  • 4 minutes to read

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

1stSteps_01

CodeRush Menu Position Customization

In Visual Studio 2019, CodeRush menu is placed into a new location - in Visual Studio Extensions menu. You can reposition the CodeRush menu back to the top level of the Visual Studio menu bar in Visual Studio 2019 version 16.4 or later.

  1. Start Visual Studio.

  2. Select Extensions -> Customize Menu… and uncheck the CodeRush item in the Extensions Menu tab.

  3. Restart Visual Studio.

    NestOption

CodeRush Toolbars

CodeRush includes CodeRush Debug and CodeRush Visualize toolbars.

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

1stSteps_02

The following toolbar buttons enable or disable the respective features.

Button Feature Description
btnMemberIcons Member Icons Supplements each class member with a corresponding icon.
btnStructuralHighlighting Structural Highlighting This feature allows you to see the structure of your code.
btnRegionPainting Region Painting Adds a custom #region directive representation that reduces visual noise to make the code look clearer.
btnRightMarginLine Right Margin Line Right margin line helps you limit the code line’s length.
btnIntelliRush IntelliRush The IntelliSense extension used to improve the IntelliSense Members List menu.
btnStopBuildOnError 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.
btnCodeMetrics 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.
btnCodeMetrics Code Places Helps you find your way in large code bases and explore an unfamiliar code.
btnSpellChecker Spell Checker Highlights misspelled words and provides correction options.
btnRichComments Rich Comments Applies text formatting to comments in the Visual Studio code editor.
btnXmlDocComments 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:

  • btnRunActiveTest - executes active tests
  • btnRunAllTests - executes all tests in the entire solution
  • btnDebugActiveTest - executes active tests in the debug mode
  • btnActiveTestWithCoverage - executes active tests with coverage
  • btnAllTestsWithCoverage - executes all tests in the entire solution with coverage
  • btnRepeatLastTest - repeats the last test execution
  • btnStopTestExecution - stops running tests

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

1stSteps_03

Setup Wizard

The Setup Wizard guides you through the main features (disabled by default), and allows you to turn them on.

Generic_SetupWizard

When you open the first solution with CodeRush installed, the Setup Wizard notification pops up. Click Try it! to open the Setup Wizard.

SetupWizard

Note

If you click Later, CodeRush will show the Setup Wizard notification with the next solution run.

If you dismissed the notification, click the Setup Wizard… item in the CodeRush menu to open the wizard.

SetupWizard

Quick Setup Options Page

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

QuickSetup

To open this page:

  1. Click Options… item in the CodeRush menu.

    QuickSetup

  2. 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.

    QuickSetup

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

QuickSetup

Light Bulb Menu

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.

1stSteps_04

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.