简体   繁体   中英

How can I add an addin in visual studio 2008 by menu item

I want to write some addin in vs2008 to help me do some repetitive work. And I want to see my addin in the menu item when I right click my class name in editor. And who can tell me hwo to add my addin in the menu.

Thanks

See Adding buttons, commandbars and toolbars to Visual Studio .NET from an add-in for detailed explanation. Basically you need to call Commands.AddNamedCommand to create your command and then call myCommand.AddControl(CommandBars["Code Window"]) .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM