Archive for the ‘DXCore’ Category

DXCore Services – Project

December 22nd, 2010 Comments off

The Project service has a pretty short list of functions. This service is intended to manipulate projects of an active solution, and provides access to the start-up project, active project, and count of opened projects. All methods and properties work with an instance of the DevExpress.CodeRush.Core.Project type.

Methods of this service:



GetEnumerator Returns enumerator of all projects in the active solution.

Read more…

CodeRush Clipboard History

December 21st, 2010 Comments off

Clipboard History is a visual multi-clipboard viewer and manager, which makes copying and pasting of data a little easier. It allows you to extend the facility of Windows system’s clipboard, beyond its default capability and the disadvantage that you can only copy once before pasting. The next time you copy or cut another snippet, you overwrite the existing clipboard contents. CodeRush helps to keep the clipboard history that you can use to paste any selected fragment again. You can have up to 64 independent fragments and work with each of them separately, persisting these fragments across Visual Studio sessions for future use. If you copy a code fragment, Clipboard History will maintain its syntax highlighting as well:

Read more…

How to use DXCore DecoupledStorage to persist plug-in data

December 16th, 2010 Comments off

To persist your data using the DecoupedStorage object, use the appropriate ReadXXX and WriteXXX methods. In case your settings are language dependant, DecoupledStorage includes a property “LanguageID” that can create and select child storage objects for the purposes of language-specific storage (e.g., to support independent settings for C#, C++, Basic, etc.). Just set the LanguageID to the appropriate Language identifier (e.g., “CSharp”, “C/C++”, “Basic”, etc.), and then read and write normally. To activate the language-neutral storage object, set the LanguageID to an empty string. If your code is inside a CodeRush Options Page, you can get the LanguageID through the Options page’s LanguageID property (also, you can handle the LanguageChanged event in your Options page to find out when the user wants to create settings for another programming language).

Read more…

DXCore DecoupledStorage structure and settings file format

December 16th, 2010 Comments off

The DecoupledStorage object is used to handle storage for your DXCore plug-ins data. Usually, DecoupledStorage represents a single DXCore Options Page. If you are not going to create an Options Page, the DecoupledStorage will represent just named data storage.

The storage has three main identifiers (properties):

  • Category (i.e. the path to the storage)
  • Name (e.g. “MyPlugIn Settings”)
  • Language (e.g. C#, C++, VisualBasic)

Read more…

DXCore DecoupledStorage object for storing data

December 16th, 2010 Comments off

As the name says, the object handles decoupled storage for DXCore plug-ins. It is recommended for plug-in developers to use DecoupledStorage for persisting data (e.g. plug-in settings). The storage has its own structure and saved in a file of a specific format in the appropriate location.

Read more…

DXCore Services – BigHint

December 14th, 2010 Comments off

The BigHint service provides methods for manipulating of big hints, such as creating new ones and showing at the specified position.

The following methods are available:

Read more…

How to use Action DXCore control

December 14th, 2010 Comments off

There are only four important things to make the Action component available and working:

  1. Create a new DXCore plug-in if you haven’t done it yet
  2. Drop the Action control on the plug-in designer surface
  3. Fill the ActionName property
  4. Handle the Execute event

That’s it. Using the ActionName you are able to assign a shortcut key, and once it’s pressed, the Execute event will do its job – perform the code you added into the event handler.

Read more…

Visualization – Element Highlighting

December 13th, 2010 8 comments

Element Highlighting visualization feature paints identifiers inside source code in a different color according to your preference. It can paint the following elements:

  • classes
  • structures
  • interfaces
  • enumerations
  • methods
  • properties
  • fields
  • events
  • anonymous elements

Read more…