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");
548k questions
547k answers
4 comments
86.3k users