Posts Tagged ‘Actions’

The Introduce ForEach Action refactoring

August 28th, 2012 1 comment

It is a rather trivial task to iterate over each item of the generic List using a foreach-loop as follows:

ForEach-loop iteration

Read more…

Three CodeRush Unit Test Runner improvements

April 23rd, 2012 Comments off

The CodeRush Unit Test Runner has several improvements in the upcoming major update.

Read more…

Added two actions to repeat the last operations (refactoring or navigation)

April 19th, 2012 Comments off

There are two actions added to repeat the last operations:

  1. SmartTagExecuteLast – executes the last code or refactoring provider performed. This one is useful is you’d like to apply a specific refactoring several times in a row. The default shortcut for this action is Ctrl+Alt+Y (inspired by the Redo operation shortcut – Ctrl+Y).
  2. NavigateLast – executes the last navigation provider. Useful for navigating forward and backward using the specific navigation provider. For this action, there’s no default shortcut yet – if you have any ideas, please share them in the Comments section to this post.
Products: DXCore, CodeRush Pro
Versions: 12.1 and up
VS IDEs: 2008 and up
Updated: Apr/19/2012
ID: U012

How to create shortcuts for refactorings that require a sub-menu choice

March 20th, 2012 Comments off

There is a built-in capability in CodeRush/DXCore to create shortcuts for any type of content providers, such as refactoring and code providers. Just choose the Refactor command and type in a provider’s name as a parameter. However, this approach does not work for refactorings that require a sub-menu choice; for example:

Read more…

DXCore Services – Command

October 31st, 2011 Comments off

The Command DXCore Service provides access to the DXCore actions and Visual Studio commands.

Read more…

CodeRush Unit Test Runner shortcuts and actions

June 20th, 2011 Comments off

CodeRush Unit Test Runner has a set of predefined shortcuts useful for running and debugging unit test cases inside Visual Studio. All shortcuts are easy to remember: they start from a general Ctrl+T keystroke (where T means Testing) followed by a second key which specifies the operation, for example:

  • DDebug
  • FFile run test cases
  • PProject run test cases
  • SSolution run test cases
  • and so on…

Read more…

How to add new menu entries to specific Visual Studio dropdown or context menus

May 3rd, 2011 Comments off

Adding a new menu entry can be easily achieved using the Action DXCore control. Just set the ParentMenu property to the name of the menu, where you would like the new item to appear. As an alternative, you can set the CommonMenu to one of the suggested values. The CommonMenu property has the DevExpress.CodeRush.Menus.VSCommonBar enumeration type, which enumerates most of common Visual Studio menu names, such as File, Edit, View, Tools, DevExpress, Help, etc.

Read more…

Organizing source code and sorting class members using CodeRush

April 14th, 2011 2 comments

Reorganization of the code is a great practice to improve code readability. If you prefer to sort your type members like this:

class {
private fields
public properties
public methods
private methods

or any other order, you can use the Member Organizer CodeRush plug-in for this purpose.

Read more…