开发者

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")
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜