Skip to main content

First Steps

  • 4 minutes to read

After installing CodeRush, you may notice the CodeRush toolbars and menu. The CodeRush menu might also be located in Visual Studio’s Extensions menu (more on this below).

Also note that CodeRush includes fast load technology to minimize any impact on Visual Studio performance. So if you’ve just started Visual Studio by opening a large solution, for example, you might not see the CodeRush menu for a few moments (until both the solution and Visual Studio have loaded).

1stSteps_01

CodeRush Menu Position

Starting with Visual Studio 2019, third party menus by default are organized in a single location - the Extensions menu. For optimal productivity, we recommend repositioning the CodeRush menu back to the main Visual Studio menu bar after your first install. Here’s how to do that:

  1. Start Visual Studio.

  2. Select Extensions -> Customize Menu…

  3. On the Extensions Menu tab, uncheck the CodeRush item.

  4. Restart Visual Studio.

    NestOption

CodeRush Toolbars

CodeRush includes “CodeRush Debug“ and “CodeRush Visualize“ toolbars.

The CodeRush Visualize toolbar controls the main CodeRush features.

1stSteps_02

The following toolbar buttons enable or disable their respective features:

Button Feature Description
btnMemberIcons Member Icons Adorns type members with a corresponding icon (with a member menu that appears if you click the icon).
btnStructuralHighlighting Structural Highlighting Reveals the structure of your code.
btnRegionPainting Region Painting Adds custom #region directive adornments to reduce visual noise and make the code look clearer.
btnRightMarginLine Right Margin Line A right margin line to help you keep long lines of code from getting too long.
btnIntelliRush IntelliRush A resizable IntelliSense extension with advanced filtering options (to reduce noise and help you find what you’re looking for faster).
btnStopBuildOnError Stop Build on Error If enabled, CodeRush stops a solution build if a project build fails and then Visual Studio attempts to build a another project that depends on it.
btnCodeMetrics Code Metrics Member adornments revealing code complexity. You can click the metric adornments for options.
btnCodeMetrics Code Places Find your way through large code bases and explore unfamiliar code.
btnSpellChecker Spell Checker Highlight misspelled words and access solution-wide options to correct.
btnRichComments Rich Comments Adds support for embedded images and text formatting in source code comments.
btnXmlDocComments Code Cleanup Brings any code up to predefined standards.

The CodeRush Debug toolbar controls Debugging features. Use the following buttons to run and debug your NUnit, xUnit, MSpec, or MSTest unit tests:

  • btnRunActiveTest - run active tests
  • btnRunAllTests - run all tests in the entire solution
  • btnDebugActiveTest - run active tests in the debug mode
  • btnActiveTestWithCoverage - run active tests with coverage
  • btnAllTestsWithCoverage - run all tests in the entire solution with coverage
  • btnRepeatLastTest - repeat the last test execution
  • btnStopTestExecution - stop the test run

1stSteps_03

Setup Wizard

The Setup Wizard guides you through the main CodeRush features (which may be disabled by default), and allows you to individually 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 the next time you start Visual Studio.

And you can always start the Setup Wizard from the CodeRush menu.

SetupWizard

Quick Setup Options Page

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

QuickSetup

To open this page:

  1. From the CodeRush menu, click Options…

    QuickSetup

  2. In the tree view on the far left, select the “Quick Setup“ options page.

    Tip: You can use the “learn more“ link next to each feature checkbox to quickly access a corresponding configuration page with more options and explanation.

    QuickSetup

For example, clicking the learn more link next to the Structural Highlighting checkbox will take you to the Structural Highlighting options page:

Option

Light Bulb Menu

You can access context-aware features from the Code Actions (Light Bulb) Menu. The icons in the Code Actions menu help you distinguish between CodeRush actions and Visual Studio’s built-in actions:

1stSteps_04

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

Note

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