How to debug DXCore plug-ins under Visual Studio 2010 SP1

March 17th, 2011 5 comments

Visual Studio Service Pack 1 introduced an issue that prevents breakpoints to be hit while debugging DXCore plug-ins. When you hit F5 to run the plug-in project, Visual Studio builds it and starts the second instance of Visual Studio where you can debug the plug-in. However, the breakpoints inside plug-in project won’t be hit when you have SP1 installed. The corresponding bug report is registered on the MS Connect. It seems that the issue is in the TargetFramework version set for the project: if the version is 2.0 – the break point won’t be hit.

Read more…

How to install a particular DXCore plug-in

March 17th, 2011 2 comments

To install a particular DXCore plug-in you need to copy the plug-in dll into your plug-ins directory. Usually it looks similar to this path:

%userprofile%\Documents\DevExpress\IDE Tools\Community\PlugIns\

where “%userprofile%\Documents” is a path to the user Documents folder.

Read more…

Plug-ins – KeyWatcher diagnostic/demo window

March 17th, 2011 4 comments

The KeyWatcher plug-in is a DXCore tool window plug-in that is useful for demonstrations. It shows the images of keyboard keys pressed inside the Visual Studio code editor. This is what it looks like:

CodeRush KeyWatcher plug-in preview

Read more…

DXCore Services – TextCommands

March 17th, 2011 Comments off

The TextCommands DXCore service provides access to registered text commands inside DXCore and allows you to format a text command to prepare it for expansion. Formatting of a text command means adding special characters defined in the Constants DXCore service to be able to expand it using the TextExpansions service. For example, to format the Caret text command, pass its name to the Format method:


and as a result, it will return: «Caret».

Read more…

DXCore Services – Outline

March 16th, 2011 Comments off

The Outline DXCore service provides access to the editor outlining, allowing you to collapse, expand, and toggle outlining.

Here are its methods:
Read more…

DXCore Services – ProjectItems

March 16th, 2011 Comments off

At the moment, the ProjectItems DXCore service contains only the single Active property which returns the EnvDTE.ProjectItem instance for the active text document. Most likely, it will be populated with additional APIs related to ProjectItems, in the future.

Products: DXCore
Versions: 10.2 and up
VS IDEs: any
Updated: Mar/17/2011
ID: D068

CodeRush Pro clipboard tools overview

March 14th, 2011 Comments off

CodeRush Pro includes several intelligent clipboard tools:

Smart Copy and Smart Cut

These clipboard features allow you to take an identifier or a block of code, and put it into clipboard without selecting it in advance. Just place the editor text caret at the identifier or at the start or end of a code block and press the copy key (Ctrl+C or Ctrl+Insert) or the cut key (Ctrl+X or Shift+Delete). This makes it easy to use cut and copy operations to move, duplicate or delete contiguous blocks of code, like methods, properties, conditional statements, loops, try/catch/finally blocks, comments, etc without selecting it first.

Read more…

Options – Intelligent Paste

March 14th, 2011 Comments off

There are two options pages for the Intelligent Paste CodeRush clipboard feature inside IDETools Options Dialog. The first one defines the main expansions and the second one allows you to manage Intelligent Paste extensions. Note the difference between “expansions” and “extensions”; in other words, extensions provide expansions. For example, the “Regular Expressions” extension provides the main list of Intelligent Paste expansions from the first options page:

CodeRush Intelligent Paste options page

Read more…