Archive for the ‘CodeRush’ Category

Code Issues hints for declaration and initialization

October 12th, 2012 Comments off

Here are a few simple code issues of a hint type (suggestion) for declarations and initializations.

Read more…

CodeRush Templates option page

October 2nd, 2012 Comments off

The Templates option page is required to control your collection of built-in and custom CodeRush code templates. When you open the Templates option page, CodeRush will locate the last template you used by default. This is an excellent way to explore and learn how templates are built. When a template expands, if you want to see how it is built, just bring up the Template options page and the last template expanded will be displayed. Here is what it looks like:

Read more…

Importing and Exporting CodeRush code templates

October 2nd, 2012 Comments off

In case you want to share your custom code templates with others, you can easily export them. As recommended, custom templates should be stored in a separate folder. You can export the entire folder. Simply right-click the folder you wish to export on the Templates option page and select the corresponding item:

Read more…

Resolving code template conflicts

September 30th, 2012 Comments off

Sometimes, you may find unexpected code template expansions when you typing code. This may happen when the template expansion key is bound to the Space Bar. Because this is a key used very often and there are tens of thousands of code templates; a complex contexts system, something may go wrong, especially if you prefer one or two key identifier names which may correspond to existing template abbreviations.

Read more…

Navigating in the CodeRush abstract source code tree

September 28th, 2012 Comments off

When CodeRush/DXCore has parsed the source code, an abstract source code tree is built. You can see the structure of the code tree using the Expression Lab diagnostic tool window. When you understand the source tree, you can use several small tools to quickly navigate inside children and siblings of the tree.

Here are available actions that allow you to quickly jump to different logical blocks inside the source tree. All actions move the editor caret to the desired tree node:


Short description


NavPreviousSibling Move to previous sibling Ctrl + Up Arrow
NavNextSibling Move to next sibling Ctrl + Down Arrow
NavParent Move to parent Ctrl + Alt + Up Arrow
NavFirstChild Move to first child Ctrl + Alt + Down Arrow
NavLastChild Move to last child {Underfined}

Note that some of the shortcuts are disabled by default (e.g., NavPreviousSibling and NavNextSibling).

Having these tools in your arsenal may boost your navigation performance inside the code editor a lot. For instance, you can press Ctrl+Up and Ctrl+Down to jump between previous and next members of a class.

Products: CodeRush Pro
Versions: 12.1 and up
VS IDEs: 2008 and up
Updated: Sep/28/2012
ID: C194

Code Issues hints for expressions

September 28th, 2012 Comments off

Here are the code issues for different expressions. If the fix is applied, following a hint it may optimize the code and/or improve its readability.

Read more…

Code Issues hints for types and members

September 28th, 2012 Comments off

Here are the suggestions (hints) code issues which might improve the readability, clarity and performance of your source code.

Read more…

Advanced CodeRush Quick Navigation customization

September 27th, 2012 Comments off

The Quick Navigation window is customizable on the Editor | Navigation | Quick Nav option page in the CodeRush Options Dialog accessible via the DevExpress menu:

CodeRush Quick Navigation Option Page

Read more…