Mark Miller

What’s New in CodeRush for Roslyn v.16.2.5

Team CodeRush continues our 45-day sprint/release cycle, and we have some treats for you in this update.

All-new Symbol Naming Assistant

This is a brand new feature designed to help you quickly name new symbols (members, variables, and parameters).

The Naming Assistant window automatically opens when you start typing a new symbol name. The suggestion list is filtered as you type, and you can use a subset of the letters in the symbol you want to filter quickly. For example, in the screencast below, typing “mb” filters the suggestions to only show “modelBuilder”.

NamingAssistant

 

Code Metrics Are Back

Code Metrics were a popular feature in CodeRush Classic, and we’re pleased to announce the feature has been ported to CodeRush for Roslyn.

Code Metrics reveal the complexity of each member, using one of three popular metrics (Cyclomatic Complexity, Maintenance Complexity, or Line Count).

You can enable the feature on the Editor\All Languages\Code Metrics options page:

EnableCodeMetrics

Once enabled, metrics will appear to the left of the member declaration:

CodeMetricsCU

You can select a different metric with the mouse, by clicking the metric number and using the menu:

MetricsAreBack

Decompiler

The CodeRush Decompiler gets some improvements. Anonymous methods now appear inline, nullable types are listed with the “?” modifier (e.g., “int?” instead of “Nullable<int>”), and XML documentation comments now appear in decompiled code.

Navigation

The References Window now lets you jump quickly among references. When the window is open, press F8 to jump to the next item and press Shift+F8 to jump to the previous item. Also, you can now use the Jump To dialog to navigate through all currently open files.

Refactorings

Two new refactorings:

  • Move Type to Namespace changes the namespace of the active type and updates all references.
  • Introduce Using Statement replaces object creation and dispose code blocks with a using statement, improving code readability and ensuring locally-used objects are properly disposed.

Smart Duplicate Line

Now, when duplicating items in collection initializers and in parameter lists, commas are added automatically if needed.

New Visualizations

Two improvements to make it easier to understand what’s happening in your code:

  • Region Painting, which implements a low-contrast visual representation of **#region** directives, reducing visual noise where regions are used:

    RegionPainting

  • Output Window Highlighting, where errors and warnings in the Output window can be emphasized with saturation, making it easier to recognize important messages faster.

    ErrorHighlighting

We also addressed a number of reported issues. As always, we welcome your feedback.

You can download the latest version of CodeRush for Roslyn from the Visual Studio Marketplace. Give it a try and let us know what you think!

Published Feb 20 2017, 12:00 PM by
Bookmark and Share

Comments

Mark DuCharme

CR for Roslyn is looking better all the time! I'm still living in CR Classic land though, waiting for eventual feature parity (or something close to parity).

Is there a page that has more detailed information about the feature differences between CR/Roslyn and CR/Classic?

I know there's a Word document that has been shuffled around via support tickets. But it's always a "submit a ticket and ask for it" affair which is a pain for both DevExpress and the requester.

February 20, 2017 1:17 PM

About Mark Miller (DevExpress)

Mark Miller is a C# MVP with strong expertise in decoupled design, plug-in architectures, and great UI. Mark is Chief Architect of the IDE Tools division at Developer Express, and is the visionary force behind productivity tools like CodeRush and Refactor!, as well as the DXCore extensibility layer for Visual Studio. Mark is a popular speaker at conferences around the world and has been writing software for over two decades.
LIVE CHAT

Chat is one of the many ways you can contact members of the DevExpress Team.
We are available Monday-Friday between 7:30am and 4:30pm Pacific Time.

If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

FOLLOW US

DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, ASP.NET, WinForms, HTML5 or Windows 10, DevExpress tools help you build and deliver your best in the shortest time possible.

Copyright © 1998-2017 Developer Express Inc.
All trademarks or registered trademarks are property of their respective owners