How-to open a Visual Studio Document Window using the Visual Studio API

I had spent considerable time trying to open a new document window and then set the document text to the result of the generated template text. I found this to be an almost impossible task and proposed this on the Microsoft Visual Studio Extensibility forums . The response that I got was that after looking into this functionality the best approach would be to save the text to a file and then open the document window. " I looked into this, I think trying to open one of the built in editors, in a normal editor tab populated with data that does not exist on disk is going to be a pointless battle...

Implementing GoTo Line functionality in a Visual Studio Custom Editor

While implementing a custom CodeSmith Generator Template Editor into Visual Studio 2010 . I ran into an issue with getting the GoTo Line functionality to work properly. According to Microsoft this functionality needs to be provided by the custom editor as well as the GoTo Line dialog will need to be implemented as there is no "official public extension point". This makes sense if you are taking over control of the editor but I feel that Microsoft should expose this dialog. I was able to implement this functionality by adding a command to the IMenuCommandService. var mcs = GetService(...