I'm trying to build a macro for Visual Studio 2008 that behaves thusly: (Extract Class Macro)
I highlight some text in the currently open document and call the Macro (using a keybinding or whatever).
The macro runs "Project.AddClass" for the current active project, allowing me to specify the Class name.
The macro adds the text I originally had highlighted in the other document into the newly-created class file, and removes the text from the original file.
The text is added to the new file inside the new class body, i.e. inside the opening and closing braces.
I've been tinkering with it, but I can't get a handle to the created class document.
Any help will be much appreciated.