Archive

Posts Tagged ‘Editing’

DXCore Services – Documents

November 22nd, 2011 Comments off

The Documents DXCore service provides an API to control opening and closing documents inside the Visual Studio IDE. You can insert, remove and change any text at the specified coordinates of the given documents.

Read more…

DXCore Services – EditPoints

November 22nd, 2011 Comments off

The EditPoints DXCore service provides methods for creating edit points. Edit points allow you to manipulate text as data in text buffers. The service is hidden from Intellisense, and it contains only different overloads of the New method to create edit points, such as:
Read more…

How to edit source files of an entire Visual Studio solution using DXCore

July 4th, 2011 Comments off

Usually, simple edits of text files are accomplished using the TextDocument object, which represents an open source file inside the IDE. The text document object is easy to access through the Documents DXCore service. It has lots of useful methods for editing a text like InsertText, DeleteText and SetText, which take a source code coordinates and a new text for replacement as a parameters. However, to use a text document object, it is required for the file to be opened inside the Visual Studio environment. If a file is closed, there’s no TextDocument object assigned to the file and you simply can’t use its methods. In case you are going to edit closed and/or multiple files, there’s a better way – the FileChange object (in the DevExpress.CodeRush.Core.Replacement namespace).

Read more…