DXCore Services – RegEx (regular expressions)
The RegEx DXcore service provides access to the DXCore regular expressions and aliases engine.
The RegEx DXcore service provides access to the DXCore regular expressions and aliases engine.
The Issues DXCore service provides methods and properties for manipulating the CodeRush Code Issues Analysis.
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).
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.
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.
The Markers DXCore service provides methods for dropping, swapping, collecting and managing navigation markers and bookmarks in source code.
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:
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.