Posts Tagged ‘Source Code’

DXCore Services – EditPoints

November 22nd, 2011 Comments off

The EditPoints DXCore service provides methods for creating edit points. Edit points allow you to manipulate text as data in text buffers. The service is hidden from Intellisense, and it contains only different overloads of the New method to create edit points, such as:
Read more…

Creating a command line tool for source code metrics analysis

August 10th, 2011 Comments off

Recently, we have created a console application that parses an entire solution and shows summary information about declared types and the number of members in each type. Let’s tweak it a bit, so it provides more meaningful and useful information, such as a report of Maintenance Complexity (MC) code metric for a solution source code.

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…

DXCore – source code and source tree elements coordinate inside source files

May 27th, 2011 2 comments

Inside Visual Studio IDE, the source code text has its coordinates: the line number and the column:

Source code coordinates

Read more…

Intelligent code lines enhancement and modification using the Duplicate Line feature

April 19th, 2011 Comments off

The Duplicate Line CodeRush feature intelligently creates a copy of an existing line of code, allowing you to easily modify it. If the code line is recognized as a predefined pattern, the line is copied and a portion of it is selected for further modification. Note that some code line bits can be modified automatically for you as well.

The predefined duplication patterns are configurable. They are stored and presented as regular expressions that contain one or several DXCore built-in reg-ex aliases for easy understanding. If the line doesn’t match any of the existing patterns – nothing happens, by default. However, there an option to copy-paste the entire line of the text if no matches are found when the feature is performed. All available options are listed later.

Read more…

DXCore Services – Language

April 11th, 2011 Comments off

The Language DXCore service is one of the most important services that provides access to the programming language fundamentals, including access to language extensions. Language extensions are DXcore plug-in extensions, which implement specific programming language support for Visual Studio, including parsers and code generators.

Read more…

How to parse source code using the DXCore integrated code parsers

April 11th, 2011 3 comments

There are times when you need to parse specific source files or blocks of code. Obviously, the DXCore Framework has many built-in parsers for various programming languages. They can be used inside the Visual Studio environment, or outside an IDE in any other application type, such as a Console App, for example. Later, this kind of app (a Console App) can be used in the project building process for code validation, code clean-up, automatic refactoring and any other task.

Read more…

DXCore Services – Source (SourceModel)

April 7th, 2011 Comments off

Provides access to the source model services. This DXCore service contains lots of useful APIs for working with the source code of the entire solution hierarchy.

Read more…