DXCore Components – Tutorial Page Provider

June 17th, 2011 Comments off

The Tutorial Page Provider DXCore component returns an HTML page, and registers it inside the topic tree of the DXCore User Guide. Many sections of the user guide are dynamically generated, so you can extend it with additional content according to your preference:

DXCore User Guide preview

Read more…

How to use DXCore in a Console App outside of Visual Studio

June 2nd, 2011 2 comments

Actually, DXCore is not designed to be used outside of Visual Studio, but there are always workarounds… In this article I’m going to show you how to use the DXCore Framework inside the regular C# Console Application to parse an entire solution and work with the abstract parsed tree. The solution should be passed-in as an argument to the program as a full complete path to the *.sln file. If there’s no argument used, the hard-coded path to the test program is used, so the program will parse itself and print information about the solution, such as a list of all types used and the number of members inside of each class.

Read more…

Visualization – XML Doc Comments Painter

May 31st, 2011 2 comments

The XML Doc Comments Painter feature of CodeRush Pro paints over XML documentation comments in the code editor, so they are easier to read in a nice-looking form. It visually replaces all XML doc tags and make them hidden, and leave the important information only:

CodeRush XML Doc Comments Painter preview

Read more…

Code Issues configuration and options

May 30th, 2011 Comments off

CodeRush Code Issues configuration is available inside the IDE Tools Options Dialog and also in the Options Dialog of the Visual Studio. The main set of options is located on the Editor | Code Analysis | Code Issues options page:

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…

Refactoring ternary expressions into null-coalescing operations and vice versa

May 25th, 2011 Comments off

There are two interesting refactorings shipped in Refactor! Pro:

  • Compress to Null Coalescing Operation
  • Expand Null Coalescing Operation

The first one converts a ternary expression into an equivalent null coalescing operation. The second one is the opposite of the first one – it converts a null coalescing operation to an equivalent ternary expression. Both refactorings are available in CSharp only, because Visual Basic, for example, doesn’t have a null coalescing operator.

Read more…

How to use DXCore SmartTagProvider control and create your own Popup menu entry

May 23rd, 2011 Comments off

Here’s what the standard Refactor!/Code! and “Jump toPopup menu looks like:

Refactor! Code! Jump to Popup menu

Read more…

DXCore Components – SmartTagProvider

May 23rd, 2011 Comments off

The SmartTagProvider DXCore component provides a custom smart tag item used in the Visual Studio IDE context menu or in the Refactor! popup menu. Here’s a standard Refactor! popup menu – it may contain the Refactor!, Code! and other smart tag providers:

Refactor!/Code! Popup menu

Read more…