Build Current Project – Keyboard Short Cut for Visual Studio
I’ve got a nifty little short cut mapping that I’d like to share with you for Visual Studio.
Usually when you want to build your solution, you probably hit CTRL+SHIFT B… unless you’re a sick freak who prefers the laborious task of pressing the play button with the mouse (I once met one).
Now this is okay for small solutions, but if your application is a little beefier you can save some time by setting up your mappings like me.
I’ve got CTRL+SHIFT+B mapped to build the current project only (not the entire solution), and CTRL+ALT+SHIFT+B to do the entire solution.
The benefit of this is that when I CTRL+SHIFT+B to build my build time is much shorter than having to compile the whole project.
To set this up:
- Tools -> Options -> Environment -> Keyboard
- Put the cursor in “Press Keyboard Shortcut Keys” and shift CTRL+SHIFT+B
- In Show Commands Containing, type: Build.BuildSelection
- Select Build.BuildSelection from the drop down list and hit apply
- Put the cursor in “Press Keyboard Shortcut Keys” and shift CTRL+ALT+SHIFT+B
- In Show Commands Containing, type: Build.BuildSolution
- Select Build.BuildSolutionfrom the drop down list and hit apply