Archive

Archive for the ‘CodeRush’ Category

Code Issues – Redundant namespace reference

June 30th, 2011 Comments off

Cause:

The Redundant namespace reference code issue highlights unused namespace references that can be safely removed in gray (dead code issue), which may improve readability.

Read more…

Code Generation – Create Descendant and Create Descendant (with virtual overrides)

June 30th, 2011 2 comments

The Create Descendant code provider shipped in CodeRush generates a descendant class for the active class, providing overrides for abstract members, if any. The second version of the code provider named Create Descendant (with virtual overrides), in addition to the Create Descendant, adds overrides for virtual members into a descendant class.

Read more…

Code Generation – Create Ancestor

June 29th, 2011 4 comments

The Create Ancestor code provider generates a new base class declaration for the active class. The generated base class will be declared above the active class and the active class becomes a descendant of the new base class. The new base class has the same visibility as the active class and contains the default public parameterless constructor. All identifiers and references of the base class are linked together for easy renaming.

Read more…

Code Generation – Declare Interface

June 29th, 2011 Comments off

The Declare Interface code provider generates a new definition of an interface and adds interface referenced members to it, if any. The declaring provider is available on an undeclared type reference, that starts with an upper-case letter I, e.g. ILogger.

Read more…

Code Issues specific for static classes

June 23rd, 2011 Comments off

A static class can be used as a unit of organization for sets of utility functions that operate on input parameters and do not have to get or set any internal data. These functions can be accessed without creating an instance of the class. In this case, a static class can make your implementation simpler and faster because you do not have to create an object in order to call its methods.

Read more…

CodeRush Code Navigation inside Visual Studio – Tab to Next Reference

June 21st, 2011 2 comments

The Tab to Next Reference feature is the simplest and one of the most powerful navigation features of CodeRush. It allows you immediately see all references and navigate among them with ease. As the name says, the single Tab shortcut is used to navigate to the next reference of an identifier or a type reference under the editor caret. Hitting the Tab key again will move you to the next reference cyclically, in other words, you can tab to the next reference over and over again, even if you come back to the first reference where you started.

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…

Code Issues tool window

June 20th, 2011 3 comments

The CodeRush Code Issues tool window shows a summary of code issues found inside the source code within an entire solution. It is intended to help you overview, analyze, navigate and fix issues such as errors, warnings, hints and dead code:

Read more…