简体   繁体   English

如何在Visual Studio 2010中组织外部工具?

[英]How to organize external tools in Visual Studio 2010?

This is how one can set them up: 这是人们如何设置它们:

http://www.c-sharpcorner.com/uploadfile/rmcochran/commandpromptinstudiotoolsmenu01152008103357am/commandpromptinstudiotoolsmenu.aspx http://www.c-sharpcorner.com/uploadfile/rmcochran/commandpromptinstudiotoolsmenu01152008103357am/commandpromptinstudiotoolsmenu.aspx

My problem is that I have got too many of them set up, and I now need a separate sub-menu or two to keep them organized. 我的问题是我设置了太多,我现在需要一个或两个单独的子菜单来保持它们的组织。 I could not figure out how to do that. 我无法弄清楚如何做到这一点。

Feel free to ask if something is not clear. 如果有什么不清楚,请随时询问。

There is the slow and manual way: 有缓慢和手动的方式:

  1. Select Tools -> Customize 选择工具 - >自定义
  2. Select the Commands tab from the dialog 从对话框中选择“命令”选项卡
  3. Select "Tools" from the dropdown as the menu bar to rearrange 从下拉列表中选择“工具”作为菜单栏重新排列
  4. Click "Add New Menu" 点击“添加新菜单”
  5. Highlight the newly added menu in the sample below (called "New Menu") and click "Modify Selection" to rename the newly created menu item if you want to 突出显示下面示例中的新添加的菜单(称为“新菜单”),然后单击“修改选择”以重命名新创建的菜单项(如果需要)
  6. Select "Tools | [your new menu]" from the dropdown as the menu bar to rearrange 从下拉菜单中选择“工具| [您的新菜单]”作为菜单栏重新排列
  7. Click "add command" 点击“添加命令”
  8. Select "Tools" from the categories on the left 从左侧的类别中选择“工具”
  9. External tools commands are listed as commands named "External Command x" in the commands list box ("External Command 1" until "External Command 24" I think) 外部工具命令在命令列表框中列为名为“外部命令x”的命令(“外部命令1”,直到“外部命令24”,我认为)
  10. Select the first, Click OK 选择第一个,单击“确定”
  11. Repeat from 7 until all added. 重复7,直到全部添加。

Tedious, but it will work. 单调乏味,但它会奏效。

You can do this through tools->customize. 您可以通过工具 - >自定义来完成此操作。 From here you'll select the commands tab then the rearange commands... button. 从这里,您将选择命令选项卡,然后选择rearange命令...按钮。 In this area you can select the tools menu and organize your external tools by adding sub directories and such. 在此区域中,您可以选择工具菜单并通过添加子目录等来组织外部工具。

It was confusing for me when arranging the external commands to toolbar menu. 在将外部命令安排到工具栏菜单时,我感到很困惑。 At first I thought that my commands are the ones at the end of list. 起初我认为我的命令是列表末尾的命令。 Later I found that all the configured external tools are shown in the menu (like external command 1 to 7 in my case). 后来我发现所有配置的外部工具都显示在菜单中(就像我的情况下的外部命令1到7)。 So the next external command that I configured was external command 8 and hence forth. 所以我配置的下一个外部命令是外部命令8,因此也是如此。 Hope this is helpful to some one. 希望这对某些人有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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