We are working on an VS extension that requires a list of Visual Studio commands like the one in this screen shot:
Example:
Where can we find or how can we access this list?
You can access it via the DTE interfaces. Get the EnvDTE.DTE interface via GetService(typeof(SDTE))
(or other appropriate mechanism) and then:
EnvDTE.DTE dte = ...;
var commands = dte.Commands.Cast<EnvDTE.Command>();
foreach (var command in commands.OrderBy(c => c.Name))
{
Console.WriteLine(command.Name);
}
I should mention this can be quite slow, so it's best avoided if you can...
visual studio contains this lists ...\Microsoft Visual Studio 9.0\Common7\IDE\*.vsk
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With