Archive

Archive for 2012

Refactorings for changing members accessibility and scope visibility

February 13th, 2012 Comments off

There are a couple of visibility-changing refactorings shipped in DevExpress Refactor! Pro.

Reduce Visibility

This refactoring allows you to quickly reduce the visibility of a member to match the highest calling visibility, in other words, to restrict the visibility as much as possible.

Read more…

Refactorings – Reduce Visibility

February 13th, 2012 Comments off

Each member of a type declaration has an associated visibility (accessibility) modifier, which controls the access to this member for other members. The Reduce Visibility refactoring shipped in Refactor! Pro allows you to quickly reduce the visibility of a member to match the highest calling visibility, in other words, to restrict the visibility as much as possible.

Read more…

CodeRush Jump to (Navigation) menu reorganization

January 26th, 2012 Comments off

Starting with the next minor update v2011 vol2.8, the “Jump to” CodeRush navigation menu is reorganized. Before, there was too much noise with the bunch of rarely-used navigation providers:

Read more…

New navigation provider – Type instantiations

January 26th, 2012 Comments off

Starting with the next minor update v2011 vol2.8, there’s a new navigation provider available: Jump to Type Instantiations.

Read more…

Unit Test Runner has now capability to inject environment variables

January 26th, 2012 Comments off

Starting with the next minor update v2011 vol2.8, the Unit Test Runner supports injection of environment variables for 3rd-party tools. Third-party tools may require providing the CodeRush Unit Test Runner with some environment variables for proper execution when launching the Test Runner process.

Read more…

Refactorings for variable scope widening (Widen Scope)

January 24th, 2012 Comments off

The scope of a variable declaration determines its visibility to the rest of a program. Scopes can be member-level, class-level and nested, where an inner scope may re-declare the meaning of a variable from an outer scope.

When declared inside a member, the scope of the variable is the entire member after the variable declaration, including all nested code blocks. This means that the variable is available to use within the member but when control passes to another member, the variable is unavailable.

Read more…

Refactoring Visual Basic With statements

January 17th, 2012 Comments off

The With statement (in Visual Basic) is used to execute a series of statements of the particular object without requalifying the name of the object. In other words, we can use the With statement to reduce the number of times we needed to manually type the full path to the target object. For example, this function inverts the background color of the active control of the active form in the current Windows application:

Refactoring With Statement sample code

Read more…

Working with HTML tables using CodeRush

January 17th, 2012 Comments off

Generating any-size HTML tables and navigating between table cells is very easy when you have DevExpress CodeRush installed. To create a new table just type “.t” inside the HTML markup and press the Space bar. This code snippet template will execute the Table Size UI feature of CodeRush, and the following tiny window will appear:

CodeRush Table Size UI window

Read more…