gpt4 book ai didi

visual-studio - 无法在 Visual Studio 自定义中将工具栏项目移动到工具栏菜单中

转载 作者:行者123 更新时间:2023-12-03 20:30:33 24 4
gpt4 key购买 nike

我正在使用 Visual Studio 2017,我真的需要一个工具栏中带有有用按钮的菜单,现在当我进入自定义菜单时 工具 -> 定制 -> 命令 .

Customize -> Commands menu

我制作了一个自定义菜单“MY_MENU”和菜单项“关闭项目”,但由于某种原因,我无法将菜单项移到菜单中(见图)。我该怎么做呢?

enter image description here

最佳答案

我相信我和提问者遇到了同样的问题,并设法解决了它,详情如下。
注意:我使用 Visual Studio 2015 Professional,但这也适用于更高版本。

设想

我创建了一个新的 Toolbar FooToolBar,并像这样放置在工具栏上:
BarMenu can be seen on the toolbar, next to it, a Solution Explorer icon

目标

将“解决方案资源管理器”图标放置在菜单中。
BarMenu can be seen on the toolbar, next to it, a Solution Explorer icon; an arrow is pointing from the icon towards the menu

问题

定制 您不能只是将项目拖放到菜单中:

Customize window showed

解决方案

在工具栏组合框中,出现了一个新项目,选择:

Toolbar combobox showing FooToolBar | BarMenu

在此之后,您将看到一个新区域,您应该在其中放置您想要的图标。
此外,从上一个 FooToolBar 工具栏项中删除上一个图标。

完成此操作后,按“确定”,它将起作用。

结果

Image of the tool bar working

我希望我帮助了某人。 :-)

关于visual-studio - 无法在 Visual Studio 自定义中将工具栏项目移动到工具栏菜单中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49302152/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com