Posts Tagged ‘Source Code’

How to enumerate solution and source code items using DXCore

April 6th, 2011 Comments off

One of the trivial tasks when developing a DXCore plug-in is the enumeration of the active solution items, such as projects, source files, then interfaces, classes, methods, properties, statements, etc. A similar task is to get an active element (in other words, the element where the editor caret is located) inside the active source file to start working with one.

All of the items of the solution are represented by the DXCore classes, located in the “DevExpress.DXCore.Parser” assembly inside the “DevExpress.CodeRush.StructuralParser” namespace. Consider, we have a standard Visual Studio solution, DXCore uses the following classes to represent its hierarchy:

Read more…

Shared Source – Structural Highlighting

August 20th, 2010 Comments off

Structural Highlighting helps you visually navigate the structure of the code. Matching delimiters are connected with low-contrast lines (you can configure the color of the line for each type of code block individually) that are easy to read when this information is important, and easy to ignore when your mind is on the code. For example, see the vertical and horizontal lines in this code sample:

Read more…