Archive

Author Archive

DXCore Services – RegEx (regular expressions)

July 4th, 2011 Comments off

The RegEx DXcore service provides access to the DXCore regular expressions and aliases engine.

Read more…

DXCore Services – Issues

July 4th, 2011 Comments off

The Issues DXCore service provides methods and properties for manipulating the CodeRush Code Issues Analysis.

Read more…

How to edit source files of an entire Visual Studio solution using DXCore

July 4th, 2011 Comments off

Usually, simple edits of text files are accomplished using the TextDocument object, which represents an open source file inside the IDE. The text document object is easy to access through the Documents DXCore service. It has lots of useful methods for editing a text like InsertText, DeleteText and SetText, which take a source code coordinates and a new text for replacement as a parameters. However, to use a text document object, it is required for the file to be opened inside the Visual Studio environment. If a file is closed, there’s no TextDocument object assigned to the file and you simply can’t use its methods. In case you are going to edit closed and/or multiple files, there’s a better way – the FileChange object (in the DevExpress.CodeRush.Core.Replacement namespace).

Read more…

DXCore Services – Wizards

July 4th, 2011 Comments off

The Wizards DXCore Service provides access to the DevExpress DXCore Framework and Visual Studio wizards. The service is hidden from Intellisense when accessing it though the CodeRush object. Methods of this service have several overloads where you can specify additional parameters for launching a particular wizard.

Read more…

DXCore Services – UnitTests

July 4th, 2011 Comments off

The UnitTests DXCore service provides methods for executing and debugging unit test cases and test collections in the specified scopes. Allows to add custom context menu items into the drop-down menu of a Unit Test Runner Tile in the code editor.

Read more…

DXCore Services – Markers

July 4th, 2011 Comments off

The Markers DXCore service provides methods for dropping, swapping, collecting and managing navigation markers and bookmarks in source code.

Read more…

Refactorings – Use Implicit Line Continuation

June 30th, 2011 Comments off

The Use Implicit Line Continuation is a Visual Basic language specific refactoring available in Visual Studio 2010 that removes redundant line-continuation underscore characters from an entire source file.

Visual Basic language version 10 has been improved in the area of line-continuation characters. Now, there are a lot of places in the code where an underscore is not necessary anymore, which means that Visual Basic is smarter about auto-detecting line continuation scenarios, and as a result, no longer expect you to explicitly indicate that the statement continues on the next code line. For example, the underscore is no longer necessary in the following cases:

Read more…

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…