The Introduce ForEach Action refactoring
It is a rather trivial task to iterate over each item of the generic List using a foreach-loop as follows:
It is a rather trivial task to iterate over each item of the generic List using a foreach-loop as follows:
The CodeRush Unit Test Runner has several improvements in the upcoming major update.
There are two actions added to repeat the last operations:
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:
The Command DXCore Service provides access to the DXCore actions and Visual Studio commands.
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:
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.
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
constructors
public properties
public methods
private methods
}
or any other order, you can use the Member Organizer CodeRush plug-in for this purpose.