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?
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.
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