3 ms·
Developing extension packages for Visual Studio 2005/2008/2010/2012 using C# with real-life samples. PART N3. This article deals with creation, utilization and
by AndreyKarpov 14y ago
Developing extension packages for Visual Studio 2005/2008/2010/2012 using C# with real-life samples. PART N3.
This article deals with creation, utilization and handling of Visual Studio commands in its extension modules through automation object model APIs and IDE services. The relations between IDE commands and environment UI elements, such as user menus and toolbars, will also be examined.
- josteink 14y agoWhile I'm sure that you've put a lot of work into it and that it might be a good read for the right audience, the key to getting people's attention is having a good headline. People demand a good, concise and descriptive headline these days. The headline for this submission could definitely use some improvements.
- mooism2 14y agoSeconded. The headline “Visual Studio commands” suggests an article containing such nuggets of wisdom as “You can press F5 to compile and run your program”. It fails to communicate what the article is actually about.
- ryanmolden 14y ago>Assigning handlers to the commands defined in a VSCT file is possible through a global service that is available through the IMenuCommandService Good high level overview, but the above quoted section is incorrect. IMenuCommandService is not a global service, in fact it is somewhat of a faux service as it is available only inside MPF derived types (WindowPane and Package) and each derived type gets its own, isolated instance. It is not how VS itself "does" commands, but rather bus convienence introduced by MPF. You can also assign handlers for commands defined by others (or the shell) in the same way, but package level handlers will only be invoked for the package that defined them.
- eremeevp 14y agoThanks for your feedback!