MZ-Tools Articles Series: HOWTO: Guessing the IDE mode (design, debug or run-time) from a Visual Studio add-in or macro

March 27, 2007

When you want to know programatically the IDE mode (design, debug or run-time) it happens that the DTE.Mode property returns only two of the three possible modes (I don’t know why Microsoft omitted the Run Mode in the vsIDEMode enum). In this article I explain how to distinguish among the three modes: HOWTO: Guessing the […]


MZ-Tools Articles Series: HOWTO: Initializing new events in Visual Studio macros

March 27, 2007

This question appears from time to time in forums, so I wrote an article about it:  HOWTO: Initializing new events in Visual Studio macroshttp://www.mztools.com/articles/2007/MZ019.htm When it was already written I discovered that a very similar one appears in the MSDN docs: How to: Create an Event Handler in a Macro for a Specific Type of Projecthttp://msdn2.microsoft.com/en-us/library/ms228948(VS.80).aspx