开发者

How to invoke built-in commands from Visual Studio macro?

开发者 https://www.devze.com 2023-01-09 17:00 出处:网络
From a Visual Studio macro, how do I (p开发者_StackOverflow中文版rogrammatically) invoke one of the built-in commands (say, File.OpenFile)?

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

精彩评论

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