Archive

Archive for the ‘DXCore’ Category

DXCore Services – Text Fields

June 12th, 2012 Comments off

The TextFields DXCore service provides access to the Text Fields engine. Text fields allow you to enter data and then press Num Enter or Enter to quickly move to the next text field. Text fields are highlighted in the editor and usually have a tool tip below describing the data expected.

Read more…

Troubleshooting the DXCore/CodeRush plug-in loading

May 15th, 2012 2 comments

Sometimes CodeRush/DXCore plug-ins may not be loaded correctly. Here is a brief instruction if you’d like to investigate and fix the loading of the plug-in in question.

Read more…

How to add assembly and project references to a specific project using DXCore

April 19th, 2012 Comments off

To add an assembly reference, you first require a reference to the target project. To get one, you can use the Source Model DXCore service, for example:

ProjectElement projectElement = CodeRush.Source.ActiveProject;

Read more…

How to add new projects to a solution programmatically using DXCore

April 19th, 2012 Comments off

You can add new projects from the Visual Studio built-in project templates to the current solution using the DXCore Solution service:

CodeRush.Solution.AddProject("ProjectTemplateName", "UniqueProjectName");

Read more…

How to create shortcuts for refactorings that require a sub-menu choice

March 20th, 2012 Comments off

There is a built-in capability in CodeRush/DXCore to create shortcuts for any type of content providers, such as refactoring and code providers. Just choose the Refactor command and type in a provider’s name as a parameter. However, this approach does not work for refactorings that require a sub-menu choice; for example:

Read more…

Creating a new code issue and its fix for Java Script

March 6th, 2012 Comments off

The process of adding a new CodeRush code issue and a code fix provider for the code issue in the Java Script language is the same as for any other supported language. As an example, we are going to add a code issue that will highlight the “for..in” loop with the following structure:

Read more…

DXCore Services – Text Classification

February 14th, 2012 Comments off

The Text Classification DXCore service provides methods for Visual Studio 2010+ text classification manipulation. A text classification logically classifies the content of the code editor (e.g., the text behind the code editor) and highlights elements of the editor content matching a classification. A classifiers main task is to recognize elements of the underlying text buffer and highlight those that match a classification type.

Read more…

DXCore Services – PlugIn Extensions

February 14th, 2012 Comments off

The PlugIn Extensions DXCore service provides access to registered DXCore plug-in extensions.

The service contains several overloads of the Find method that searches for a plug-in extension based on a stored property value. Stored properties are used by the plug-in loader to retrieve information without demand-loading the plug-in in which this extension is contained. This should only be used in special circumstances.

Read more…