Archive

Archive for the ‘CodeRush’ Category

Specific CodeRush code providers for declaring new classes

June 1st, 2012 Comments off

CodeRush provides code providers for declaring classes, such as:

Read more…

Declare Delegate CodeRush code provider

June 1st, 2012 Comments off

A delegate is a special kind of object that holds a reference to a method. Once a delegate is assigned a method, it behaves exactly like that method. It can have parameters and a return value. Using a delegate allows the programmer to encapsulate a reference to a method inside a delegate object.

Read more…

Creating interface implementers with CodeRush

June 1st, 2012 2 comments

A class that implements an interface should implement all members of that interface. Members of implemented interfaces can be declared in two ways: implicit or explicit. That is why there are two versions of the Create Implementer code provider in CodeRush:

  • Create Implementer (implicit)
  • Create Implementer (explicit)

Read more…

Code Issues specific to C# and VB language keywords

May 30th, 2012 Comments off

We are going to review the CodeRush code issues dedicated to C# language limitations for the following keywords: ‘base’, ‘this’, ‘yield’, ‘params’ and ‘Me’, ‘ParamArray’ keywords in Visual Basic. Here’s a brief overview of keywords:

Read more…

How to adjust the font size in the CodeRush window

May 30th, 2012 Comments off

One of the common CodeRush questions coming from new users is how to adjust the font size in the CodeRush Training window.

The tool window uses the standard WebBrowser component to display its data, which applies the built-in Internet Explorer settings.

Read more…

CodeRush and Visual Studio bookmarks

May 30th, 2012 Comments off

When you work on large projects you may need to revisit several areas of your code on a regular basis. CodeRush allows you to store such important locations in the code and move back to them in the future by using bookmarks. Visual Studio provides a similar bookmarks feature, which allows you to mark places in your code that you would want to come back to. Let’s see what differences between the CodeRush and Visual Studio bookmarks are.

Read more…

Creating simple templates step by step

April 26th, 2012 Comments off

Once you know recommendations for creating new templates and have the Templates options page open, you can start writing a template expansion starting from plain text. Any plain text typed or pasted into the Expansion area will be expanded as is, for example:

Read more…

Creating CodeRush code templates overview

April 26th, 2012 Comments off

Creating CodeRush code templates is easy. They are being created on the Templates options page in the Options Dialog. The Templates options page is an excellent way to explore and learn how templates are built. When a template expands, and you want to see how it is built, just bring up the Template options page and the last template expanded will be displayed. I recommend maximizing the Options dialog and collapse the options tree view on the left by clicking those tiny blue rectangles that appear when you hover over the area between the tree view and options page area:

Read more…