CodeRush for Roslyn, v1.0.6

15 October 2015

CodeRush for Roslyn v1.0.6 is ready for download. Here’s what’s new in this version:

  • The Decompiler is now included in CodeRush for Roslyn v1.0.6. Assembly structure, from namespace all the way down to class members, appears in the tree view on the left, while source code for the selected node appears in a pane on the right.

    DecompilerWindow.png

  • The Unit Test Runner shows test execution progress and summarizes test run results on Visual Studio’s status bar.
  • New test runner actions (which can be bound to shortcuts for fast invocation):

Command Behavior Default Shortcut
UnitTestsRunCurrentClass Executes all tests inside the active type (at the caret) Ctrl+T, C
UnitTestsRunFile Executes all tests contained in the active file Ctrl+T, F
ShowTestRunner Shows the Unit Test Runner window Ctrl+T, T

    • New Code Cleanup rules:
      • Collapse Accessors
      • Expand Accessors
      • Remove redundant ‘base’ qualifier
      • Remove redundant ‘this’ qualifier
      • Remove redundant type cast
      • Use explicit ‘this’ qualifier for field access
      • Use explicit/implicit visibility modifiers

    • Member Icons – select member scope.
      MemberIconMenu.png

    • Cycle Scope (member/type visibility) Up/Down with Alt+Up/Down
    • New Selection Embeddings wrap the selected expression inside parens when you press one of the paren keys. Enable these bindings if you want this feature:

      image 

      Also, if you work with a non-U.S. keyboard, check the bindings and redefine them if needed to correspond with the keys you press for the left and right parentheses, and the “!” character.

    • New for Refactorings and Code Providers:
      • Declare Constant - declares a constant for the primitive value at the caret.
      • Introduce Setter Guard Clause - introduces a value-changed check at the start of a property setter, exiting early if the assigned value matches what is already in the backing store.
      • Optimize Namespace References gets a new options page, letting you specify sorting options. You can also use this page to specify which references should be never removed even when they aren’t used.

        image
      • Rename File to Match Type - renames the file (and updates the project), so the file name matches the type name.
      • Remove Unused Member - removes empty and unused event handlers.
      • Now available for Visual Basic:
        • Improved support for code providers declaring classes and members.
        • Add Parameter
        • Declare Method
      • New refactorings for C#:
        • Collapse Property - collapses a property with backing store to a single line if its accessors are empty or contain a single one-line statement.
        • Collapse Accessor - Collapses an accessor to a single line if it is empty or contains a single one-line statement.
        • Collapse Method - collapses a method to a single line if its body is empty or contains a single one-line statement.
        • Expand Property - expands a property, placing its getter and setter on separate lines.
        • Expand Accessor - expands an accessor placing its content on a separate line.
        • Expand Method - expands a single-line method placing its content on a separate line.

     

    • Navigation Providers, accessible by pressing Ctrl+Alt+N:
      • Assignments
      • Base Types
      • Declaration
      • Derived Types
      • Implementations
      • Instantiations
      • Members
      • Overloads
      • Overridden Member
      • Overrides
      • Parent Type

    NavigationProviders.png

    The CodeRush for Roslyn preview is free, and updated every 45 days.

    As usual, please download, give it a try – and let us know how we can make it better (support@devexpress.com).

    11 comment(s)
    Bradley Uffner

    Is there a good comparison anywhere of features between the regular Code Rush and the Rosyln Code Rush?

    15 October, 2015
    Mark Miller (DevExpress)

    Hi Bradley,

    No, we don't have that comparison yet. I'll try to get that out in the next two weeks. CodeRush for Roslyn (CRR) is mostly a functional subset of CodeRush Classic. CRR has a few new/improved features and are not and will not be in CRC, but the team is still working to reach feature parity.

    15 October, 2015
    Andrii

    Wow! Amazing features! And work very quickly!

    I missed them from CodeRush classic.

    Please, add buttons onto CodeRush Visualize toolbar for CodeRush windows. It is not very handy to go to menu.

    Please, add ability to open multiple decompiler windows. And clone current decompler window with it state.

    Decompiler is not very usable.

    Could you add an option to open Decompiler not in tool window but in document window?

    Because on dal monitor environment it is OK to move it on second screen.

    But on small laptop or tablet it is not enough space to use it inside main Visual Studio window. So I need to open it maximized and that it appears in Alt+Tab and on TaskBar.

    So could you add ability to enable or disable opening CodeRush windows as full windows.

    When I open References window its toolbar is focused. It must not be able to receive focus at all. Looks very ugly!

    The same with Code Coverage and Test Runner windows.

    The most appropriate is to focus search box or first button on toolbar.

    15 October, 2015
    Todd Stewart

    The test runner does not work with xUnit 2.1.  The test runner windows sees all of the tests but when you try to run a single test or use run all it does not run them.

    16 October, 2015
    Vito (DevExpress Support)

    Hi Todd,

    We have already been informed about this problem and are currently working on it. Please refer to this ticket for details:

    www.devexpress.com/.../T300432

    16 October, 2015
    DAC Software sp. z o.o.

    Hi,

    Have you plan to add support of MSpec in CodeRush for Roslyn ?

    26 October, 2015
    Mark Miller (DevExpress)

    Hi DAC Software,

    MSpec support is already in CodeRush for Roslyn. If you are having any issues, please contact support@devexpress.com.

    27 October, 2015
    Callon Campbell

    Any idea on when CodeRush for Roslyn will be out of beta and include all required CodeRush for Classic features?

    9 November, 2015
    Mark Miller (DevExpress)

    Hi Callon,

    I expect to reach feature parity sometime in Q1 2016.

    9 November, 2015
    Callon Campbell

    Thanks Mark for the update on feature parity in Q1 2016. Looking forward to it :)

    Question, is it recommend to NOT install both CodeRush Classic and Roslyn on same machine or can they place nicely together?

    12 November, 2015
    Vito (DevExpress Support)

    Hello Callon,

    While we recommend uninstalling CodeRush Classic prior to installing CodeRush for Roslyn, so that you can enjoy all the benefits the Roslyn platform provides, this is not a strict requirement. You may have both CodeRush Classic and CodeRush for Roslyn installed at the same time, especially if you rely on CodeRush Classic features that haven’t been ported yet.

    30 November, 2015

    Please login or register to post comments.