Archive

Archive for the ‘CodeRush’ Category

Visualization – XML Doc Comments Painter

May 31st, 2011 2 comments

The XML Doc Comments Painter feature of CodeRush Pro paints over XML documentation comments in the code editor, so they are easier to read in a nice-looking form. It visually replaces all XML doc tags and make them hidden, and leave the important information only:

CodeRush XML Doc Comments Painter preview

Read more…

Code Issues configuration and options

May 30th, 2011 Comments off

CodeRush Code Issues configuration is available inside the IDE Tools Options Dialog and also in the Options Dialog of the Visual Studio. The main set of options is located on the Editor | Code Analysis | Code Issues options page:

Read more…

Code Issues – Redundant field initialization

May 20th, 2011 Comments off

Cause:

The redundant field initialization code issue of type ‘dead code‘ highlights unecessary initialization of fields that can be safely removed (because the common language runtime initializes all fields to their default values, regardless of their type). Value types are initialized to 0 and reference types are initialized to null. Explicitly initializing a field to its default value is redundant, degrades performance and adds to maintenance costs.

Read more…

Code Templates – NUnit testing

May 17th, 2011 Comments off

Just a list of NUnit-testing CodeRush code templates useful for test-driven development. Bear in mind, if you have an identifier on the Clipboard, assert templates will automatically paste the identifier from the Clipboard as an argument to the assert call. The meaning of the text commands in bold can be seen in the corresponding topic.

Read more…

Code Templates – ASP.NET MVC development

May 16th, 2011 Comments off

The 10.2 release of DevExpress IDE Tools (CodeRush Pro) has introduced a number of templates for MVC development. They include templates for C#, VB and ASPx (C# and VB) code. CodeRush text commands are marked as bold in template expansions, see the list of all text commands, to learn more.
Read more…

CodeRush Coding Helpers and Code Providers list

May 16th, 2011 Comments off

Here’s the list of advanced CodeRush coding helper features and code providers that do not generate or declare any code. For the code generation tools, see the corresponding topic.

Read more…

Code Templates – Using/Imports directives

May 11th, 2011 Comments off

Here is the list of CodeRush using (C#)/Imports (VB) specific code templates. The templates below generate namespace reference declarations. Templates start with the letter “u” (the equivalent templates start with the letter “i” in VB). To add a namespace, just enter a “u” followed by the uppercase letters of the namespace. For example, to add a reference to “System.IO”, use “usio”.

These templates can be found on the Editor | Templates options page in the Options Dialog. Expansions containing several values in parenthesis will be enumerated using the CodeRush Intellassist feature: pressing the Tab/Shift+Tab keys will switch to another value.

Read more…

Navigating between files in Visual Studio using CodeRush

May 10th, 2011 Comments off

There are three different tool windows allowing you to navigate between files of your Visual Studio solution in CodeRush. The functionality of these three windows could be actually contained in a single window with a couple of switch options, but historically they have appeared variously in the following order:

Read more…