CodeRush Feature Overview
Create new code more efficiently with intelligent code generation. Hundreds of smart template shortcuts (like VS code snippets on steroids) provide easy access into quickly creating just the code you need, intelligently adapting to surrounding code and/or exploiting code on the clipboard. CodeRush's Deep Declare intelligently declares missing types and members automatically. And Selection Embedding instantly places selected code inside try/finally, try/catch, using statements, braces, and more.
The Static Code Analysis engine detects common errors in your code and advice how to fix them.
Quickly find symbols and files in your solution and easily navigate to code related to the current context. CodeRush includes various navigation features to help find what you need fast and easy.
CodeRush makes it easier to see what's going on with complex code, so you can move forward and spend less time wandering and wondering. How did that expression get its value? When did that local value change? What arguments are we passing into this method? How many times have we been through this loop? CodeRush's compelling new debug visualizer effortlessly and instantly answers these questions, and more.
Quickly make your code more readable and maintainable. CodeRush provides over 100 refactorings and code providers, including Move Type to File, Optimize Namespace References, Add Missing Constructors and more, designed to simplify code, improve readability, and increase flexibility. And CodeRush Refactorings come with a streamlined user interface built directly into the Visual Studio editor - no modal dialogs to block your code or slow you down.
The blazingly fast Test Runner automatically detects unit tests for NUnit, xUnit, MSpec and MSTest frameworks, and can optionally run tests located across multiple assemblies concurrently. The CodeRush Test Runner also runs .NET Core test cases.
Using CodeRush's Analyze Code Coverage feature, you can discover what parts of your solution are covered by unit tests, and quickly find the at-risk parts of your architecture.
You can experience CodeRush free, for 30 days. Full licenses start at $49 for a one-year subscription. All subscription plans include a lifetime license to the product and a year of free updates (updates ship about every 45 days).
What's New in the latest version
This release gets the following code analysis diagnostics:
We have new refactorings to help you remove unused variables from your code:
We have also added the Discard Variable refactoring that replaces unused or assigned-only variables with discard:
New Cleanup Rules
You can use the Code Cleanup feature with the Remove unused variables rule to remove unused variables across multiple files at once.
The Replace unused variables with discard code cleanup rule replaces unused or assigned only variables with discard.
To apply these code cleanup refactorings, make sure the corresponding rules are enabled in the Editor | | Code Cleanup options page.
Run Code Cleanup for Folder
You can now run Code Cleanup for a selected folder (or folders) in the Solution Explorer. Simply right-click the folder you want to clean and select CodeRush Cleanup.
The progress window shows what files CodeRush is cleaning:
If code cleanup is cancelled while it is still in progress, all code remains unchanged.
Code Places Enhancements
Favorite Code Places
You can favorite code places and access them instantly in the Favorites tab. Favorite places are saved between sessions.
To favorite a code place, right-click a desired member in the File Places tab, select Add to Favorites -> Add to new group in the invoked context menu, enter a group name in the New Favorites Group dialog and press Enter. CodeRush marks the favorite code place with a star and adds the code place to the newly-created group in the Favorites tab.
You can also add code places to different favorites groups. Right-click a code place in the File Places tab, and select the desired group in the Add to Favorites sub menu.
Collapse/Expand Code Places
The new Collapse All/Expand All buttons in the Code Places window let you quickly collapse or expand all the code places and the corresponding members in the code editor.
Selection Expand/Reduce Enhancement
When using the Selection Expand/Reduce feature you can see a code preview in the code editor if a portion of the selected code falls outside the screen boundaries.
To enable this new code preview, go to the Editor | All Languages | Selection options page and enable the "Show code preview hints when selection changes" option.