views:

25

answers:

1

From a Visual Studio macro, how do I (programmatically) invoke one of the built-in commands (say, File.OpenFile)?

Thanks.

A: 

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