Through the command event monitoring code for Visual Studio