如何在Visual Studio 2010中将新项添加到项目上下文菜单?

时间:2014-01-09 12:45:12

标签: c# .net visual-studio-2010

如何将自己的模板添加到Visual Studio 2010添加上下文菜单中显示的元素列表中?

enter image description here

感谢。

1 个答案:

答案 0 :(得分:4)

您可以通过以下方式在visual studio 2010中进行操作:

1.Right click on the Tool menu and click "Customize..".
2.Click the "Commands" tab.
3.Click the "Context menu" option.
4.Select the "Project and Solution Context Menus | Solution".
5.Click the "Add Command..." button.
6.Select "File" in the "Categories" list box.
7.Select "Close Solution" in the "Commands" list box.
8.Move up/down as desired.
9.Click "Close".