Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a standard keyboard shortcut to build the current project in Visual Studio?

People also ask

What does Ctrl k do in Visual Studio?

Ctrl+K for Removing Bookmarks Visual Studio contains a characteristic that enables users to add a bookmark. This bookmark can be added to a line of code in a solution.

What is Ctrl Shift F in Visual Studio?

Ctrl-Shift-F is used to find all the ocuurance of a string with in entire solution and display find result window as shown below. Ctrl-F is used to find a string in the current document, project and all open documents one by one.


Assigning the shortcut to "Build.BuildOnlyProject" command doesn't seem to work in VS2008.

Assign the shortcut to "Build.BuildSelection". If you have a solution with several projects and files open from the various projects, whatever file you are currently editing will define the project that will be built when you use the assigned shortcut for "Build.BuildSelection".

You'll know the keyboard shortcut is working when you click the Build menu option and you see the keyboard shortcut on the menu itself.

btw - a restart/reboot is not required when assigning keyboard shortcuts.


custom shortcut depending on what keybindings you are using.....if you look in your menu it will tell you if you have a keybinding.

The other thing I have got used to, because I make use of ViEmu, is use the menu shortcuts. Which are actually quite quick to do, and are independent of bindings.

  • So to build your project you go Alt + B, U

You can use the shortcuts already established in the main menu that are navigated with the Alt key:

At least for VS2013:

Alt + B, B -> Build Solution
Alt + B, R -> Rebuild Solution
Alt + B, U -> Build current project
Alt + B, E -> Rebuild current project

For some reason after installing Resharper I couldn't get a global shortcut to work (tried several times!!!), but as long as what you want to do is on the main menu, there is always an Alt + "Letter1", "Letter2" combination to trigger whatever action you'd like :-)


For C# development:

F6 or Shift+Ctrl+B - Builds all the projects in the solution.

Shift+F6 - Builds the selected project and its dependencies.


Visual Studio 2015/17

ALT + B + E

ALT + B = Open Build Menu

E = Rebuild Current Project


for C# development. Tools -> Options. Select Keyboard, select additional keyboard mapping scheme to "Visual C# 2005". This mapping has F6 as standard shortcut.