How-to open a Visual Studio Document Window using the Visual Studio API Thursday, June 02 2011 on Visual Studio Extensibility
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...

