简体   繁体   中英

How to add a context menu item to the toolbar?

I have several projects in my solution. I'd like to debug a standalone project that is not the active project. So, I right click on it, select Debug/Start New Instance and it runs.

Is there a way to place this Debug/Start New instance on the toolbar somehow? I don't see anything in the Customize... screen to be able to add a context menu to the toolbar.

在此处输入图片说明

The command name is ClassViewContextMenus.ClassViewProject.Debug.Startnewinstance . I'm not sure you can add it directly to the toolbar, but you can call it from a macro and add the macro to the toolbar. Or just assign a keyboard shortcut to it.

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