CodeRush 19.2.9

Released: Mar 18, 2020

Updates in 19.2.9

Features

Blazor Support

  • Refactorings and Code Providers - You can now apply refactorings and code providers from @code sections in .razor files. The following refactorings and code providers are all available for .razor:
    • Add/Remove Block Delimiters
    • Add Else Statement
    • Collapse/Expand Local Function
    • Collapse/Expand Method/Property
    • Collapse Accessors
    • Combine/Split Conditionals
    • Compress/Expand Assignment
    • Compress to/Expand Null Coalescing Operation
    • Conditional to Switch/Switch to Conditional
    • Convert to Initializer/Decompose Initializer
    • Convert to Math.Pow call
    • Convert to String Interpolation
    • Convert to System Type/Built -in Type
    • Convert to Tuple
    • Discard Variable
    • Exit Method Contract
    • Expand Ternary Expression
    • Flatten Conditional
    • ForEach to For/For to ForEach
    • ForEach to Linq
    • Introduce Format Item
    • Introduce Using Statement
    • Line Up Arguments/Parameters
    • Make Implicit/Explicit
    • Move Declaration Near Reference
    • Move Initialization To Declaration
    • Remove All Redundant Block Delimiters
    • Remove Redundant Assignment
    • Remove Redundant Delegate Creation
    • Remove Unused Member
    • Remove Unused Parameter
    • Remove Variable
    • Reverse Boolean
    • Reverse Conditional
    • Split Initialization from Declaration
    • Split Initialization from Declaration Near First Reference
    • Split String
    • Throw Exceptions Contract
    • Use Environment.NewLine
    • Use Expression Body
    • Use nameof
    • Use String Builder
    • Use String.Compare
    • Use String.Format
    • Use String.IsNullOrEmpty
  • Navigation - You can now use the following navigation features in Blazor code:
    • Tab to Next Reference to highlight all references and quickly navigate among them.
    • The References window to find references to a selected type or identifier.
    • The Jump to window to quickly find and jump to a location of interest.

Performance Monitoring

  • This release introduces the Performance Monitor - a diagnostics tool built into CodeRush which continuously analyzes CodeRush performance and records any issues, if found, into a log file. If you experience any delays in Visual Studio with CodeRush loaded, you start performance logging by clicking the CodeRush | Windows | Performance Monitor menu item, and then clicking Start in the Performance Monitor window that appears. After you reproduce the performance issue, click Stop in the Performance Monitor. The Performance Monitor will open the log file when analysis is complete. You can send this log file to our Support Center and we will put our devs to work analyzing the cause of the performance issue you’re experiencing. You can configure Performance Monitor settings on the IDE | Diagnostic | Performance Monitor options page.