Mark Miller

CodeRush 17.2.5 is Available

Another 30 days, another CodeRush release. Download the latest version from the Visual Studio Marketplace. This update contains the following enhancements:

Code Style

  • You can now change the default visibility modifier CodeRush uses for generated members.

    17.2.5-DefaultScope
    This setting is used by Declaration Providers, Templates and other features that generate new members from scratch.
  • There's a new Code Style option that lets you set preferences for adding clarifying (but optional) parentheses to your code.

    17.2.5-OptionalParentheses

    You can apply these Code Styles with the Code Cleanup feature.

    17.2.5-OptionalParenthesisCleanup

Templates

  • Now you can create new templates based on existing templates. Just right-click the template you want to duplicate (in the Templates options page), and select "Create Duplicate". Enter a new template name, and change the expansion or context as needed.

    17.2.5-TemplatesDup
  • Now you can easily insert template aliases into your existing templates (allowing templates to insert the contents of the aliased templates into the editor when they expand). Inside the Template Editor, just right-click and choose "Insert Alias...", then specify the name of the template to include. This is useful for sharing the same code expansion between two or more templates.

    17.2.5-TemplatesAlias|
  • You can now easily include any type in the CodeRush templates system as a Template Name Variable. Just right-click the type anywhere it appears in the Visual Studio editor and choose “Use Type in Templates...”.

    17.2.5-UseTypeInTemplates

    After selecting Use Type in Templates..., CodeRush asks for the shortcut mnemonic to use for the type.

    17.2.5-UseTypeInTemplates2

    After adding the new type, it will instantly become available in all type-aware templates, including declaration verbs like "m" (for methods), "p" (for properties), "q" for constants, "t" (for types) and "v" (for variables).
  • We have improved support for new language features in templates and other context-aware features by adding the [InInterpolatedString] context and adding the language version parameter to the [InVisualBasic(version)] and [InCSharp(version)] contexts.

Try It Today!

Download CodeRush from the Visual Studio Marketplace and let us know what you think. Updates every 30 days. The latest What’s New is always here.

Published Jan 16 2018, 03:40 PM by
Bookmark and Share

Comments

Pablo Gutierrez 1

Hi, thanks for great enhancements. I'm try to use Create Duplicate feature but it does not work.

January 18, 2018 8:09 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, Delphi, HTML5 or iOS & Android development. 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-2018 Developer Express Inc.
All trademarks or registered trademarks are property of their respective owners