The IDE service contains properties of the main Visual Studio IDE window. The service reference itself (“CodeRush.IDE“) can be used as an instance of the IWin32Window type to the Visual Studio IDE window. So, for example, if you’d like to show a modal dialog and want to have the main IDE window as its owner, pass the CodeRush.IDE reference as a parameter to the “ShowDialog” method call of the dialog window.
Read more…
Not a really useful service at the moment. It contains only a single property called “Windows“, which is supposed to store a collection of GUIDs of Visual Studio hosted windows.
For now, there is only a single GUID called “HelpPage”, which returns a GUID for a Web Browser window hosted in Visual Studio. It is used to get a handle for a particular window in the integrated development environment (IDE), in order to gain access to its properties and methods.
—–
Products: DXCore
Versions: 10.1 and up
VS IDEs: any
Updated: Nov/08/2010
ID: D030
The Editor service provides methods and properties for the IDE code editor. It is is similar to the Designer service.
Here are its methods:
Name
|
Description
|
Activate(Document) |
Activates (gives focus to) or opens the form designer for the specified document. |
Activate(Document, Boolean) |
Activates (gives focus to) or opens the form designer for the specified document. Takes a boolean parameter that specifies whether to force opening a designer for the document if it is not found. |
ShowDesigner |
Shows the code view corresponding to the current designer. |
ToggleCodeAndDesignerViews |
Switches the view between code and designer views. |
Read more…
The Solution service provides methods for adding, removing, and renaming project items of the current opened solution.
Read more…
The Designer service provides methods for Windows Forms design-time support. It is similar to the Editor service.
Here they are:
Name
|
Description
|
Activate(Document) |
Activates (gives focus to) or opens the form designer for the specified document. |
Activate(Document, Boolean) |
Activates (gives focus to) or opens the form designer for the specified document. Takes a boolean parameter that specifies whether to force opening a designer for the document if it is not found. |
ShowCodeView |
Shows the code view corresponding to the current designer. |
ToggleCodeAndDesignerViews |
Switches the view between code and designer views. |
Read more…
The DynamicLists service provides methods for working with dynamic lists. Note, that it is only used internally and hidden from Intellisense but can be used for your purposes if needed.
Read more…
The Dialogs service provides methods for a DXCore internal dialogs manipulation. Currently it is used internally for selecting a text command or a string provider from the specified list, and is not very useful for plug-in developers at the moment.
There are two methods available:
Read more…
The Debugger service provides access to the Visual Studio debugger and its current mode properties.
Methods:
Name
|
Description
|
Break |
Causes the current process to pause its execution. This method waits for the debugger to enter break mode before returning. |
Break(Boolean) |
Causes the current process to pause its execution. Takes a boolean parameter which specifies whether this method should wait for the debugger to enter break mode before returning or return immediately. |
DetachAll |
Detaches the debugger from all attached programs. |
Read more…