How to open file programmatically using EnvDTE in C#.
Assuming you have a hook to the correct DTE instance...
DTE.ExecuteCommand("File.OpenFile", "c:\derp.txt");
2.1m questions
2.1m answers
60 comments
57.0k users