How to invoke built-in commands from Visual Studio macro?
From a Visual Studio macro, how do I (p开发者_StackOverflow中文版rogrammatically) invoke one of the built-in commands (say, File.OpenFile)?
Thanks.
Found out by recording a macro and then editing it, instead of creating it from scratch. For the benefit of others, the way to do it is (for example):
DTE.ExecuteCommand("File.OpenFile")
精彩评论