How to check if Visual Studio addin was called by pressing a shortcut combination?

69 Views Asked by At

I'm writing a little VS addin, which has a shortcut to it. It calls the Exec method fine, but I don't see a way to figure out whether it was called using a shortcut, or clicking in Tools menu. I'm sure it's there somewhere, but the documentation is lacking..

Thanks !

1

There are 1 best solutions below

3
On BEST ANSWER

I checked and simply there is no simple way as of i know... and also according to normal practice and behavior addin should not behave differently. It should be independent of the way its executed.