Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't move toolbar item into toolbar menu in Visual Studio customization

I'm using Visual Studio 2017, and I really need a menu with useful buttons in the toolbar, now when I got into the customization menu TOOLS -> Customize -> Commands.

Customize -> Commands menu

I made a custom menu "MY_MENU" and menu item "Close Project", but for some reason I just can't move the menu item into the menu (see picture). How do I do this?

enter image description here

like image 934
Johannes Avatar asked Mar 07 '23 16:03

Johannes


1 Answers

I believe I had the same problem as the questioner, and managed to solve it, details below. Note: I use Visual Studio 2015 Professional, but this should apply to later versions as well.

Scenario

I created a new Toolbar FooToolBar, and placed to the toolbars like this: BarMenu can be seen on the toolbar, next to it, a Solution Explorer icon

Goal

To place the "Solution explorer" icon inside the menu. BarMenu can be seen on the toolbar, next to it, a Solution Explorer icon; an arrow is pointing from the icon towards the menu

Problem

Inside the Customize window you can't just drag&drop the item to the menu:

Customize window showed

Solution

Inside the Toolbar combobox, a new item appeared, select that:

Toolbar combobox showing FooToolBar | BarMenu

After this, you will see a new area where you should place the icon you wanted to. Also, remove the previous icon from the previous, FooToolBar toolbar item.

After doing this, press OK and it will work.

Result

Image of the tool bar working

I hope I helped someone. :-)

like image 104
Károly Ozsvárt Avatar answered May 04 '23 19:05

Károly Ozsvárt