Custom tool shortcut visual studio

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-06 17:02:35

问题


Is there a way to create a shortcut for a custom tool in visual studio? At the moment I have to navigate to the tool in the solution, right click and run custom tool. It would be nice if I could either bind a shortcut key or run the tool from the toolbar. Does anyone know of a way to do this?


回答1:


I think you are looking for this:

  • Go to Tools -> External tools
  • Configure your tool
  • Go to Tools -> Options -> Environment -> Keyboard
  • In Show commands containing type: Tools.ExternalCommand
  • Choose the command you want and set a shortcut for it.

In the External tools, the gotcha is that the number of the external tool is the position in the list.




回答2:


Yes, go to Tools -> Options -> Environment -> Keyboard..

Look for command Project.RunCustomTool or the command you actually want.



来源:https://stackoverflow.com/questions/12930468/custom-tool-shortcut-visual-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!