38

I'm using VS2008, been using it for quite some time now, and since I hate using the mouse while developing, I'm always using F6 to build the solution, or Shift+F6 to build the current project. What's weird though is for some strange reason, it simply stopped working over the last few days. In fact, when I pull down the Build menu, next to "Build MyProject" there's no longer a "Shift+F6" shortcut there on the menu?!? Anyone ever experienced this? Is there a setting I need to change?

0

8 Answers 8

60

You can change keyboard bindings in the Tools->Options dialog. It's under Environment->Keyboard.

You can reset the binding here, and also check what might have stolen it by checking what's currently bound to those keys.

If you recently installed any add-ins, they're known to set (sometimes unwanted) keyboard shortcuts.

6
  • Thanks! It was driving me nuts!
    – BFree
    Mar 25, 2009 at 17:17
  • 4
    I had the same problem when I installed VM Ware. SHAME on you VM Ware for overrighting my keyboard short cuts with you VS plugin. Oct 2, 2009 at 16:43
  • Grrr! Luckily I'm still on my 30-day free trial of VMWare Workstation. Hijacking the VS keyboard shortcuts is a HUGE minus. Looks like another point for sticking with the free VirtualBox (its faster and less bloated than VMWare anyway and doesn't require a reboot to install the thing).
    – dso
    Jan 1, 2011 at 19:27
  • 1
    I see zounds of options for building here. Which one is it and how do I assign F6 to it? You did good up until you left the answer hanging at ->Keyboard saying we can reset the binding here :)
    – theJerm
    Dec 25, 2012 at 5:02
  • I used it, set it to shift f6 but still does not work Mar 21, 2016 at 7:08
30

Your Keyboard Mapping Scheme has changed. Go to Tools -> Options. In Environments->Keyboard in the dropdown for "Apply the following additional mapping scheme" select "Visual C# 2005"

1
  • 4
    And don't click the 'reset' button ... like I did ... thinking that would (re)set the keyboard to the selected value. Select 'Visual C# 2005' and then click OK button.
    – steve
    May 22, 2017 at 23:38
9

Have you tried : Tools -> Options -> Environment -> Keyboard

All the keyboard shortcuts have been shown there.

3

I'll add the proverbial "Is it plugged into the wall" question:

Do you have a fancy keyboard that replaces function keys with other things toggled incorrectly?

1
  • I can confirm it was VM Ware workstation which adds an add-in to VS Oct 25, 2010 at 6:29
2

VMWare stole my Shift + F6. Maybe that's your prob?

I fixed this by going to going to tool-options-environment-keyboard just like the other suggestions but I clicked "Reset" instead to restore the proper short cuts.

2

Resharper was annoying about this. I had to set BuildSolution to f6 then remove F6 from Resharper_Move

2

Just in case this bites anyone else: Parallels Desktop for OS X grabs F6 and uses it for "Show and hide Parallels Desktop". It can be disabled in Preferences -> OS X System Shortcuts

1

I know this question already has an answer but it is good to have this here for future reference:

On the Solution properties page, Configuration Properties -> Configuration, the list of projects will be displayed and the last column "Build" will have checkboxes, one for each project. If they are all unchecked, you will press F6 but nothing will happen. Check the projects you want to build, on that case and you are now good to hit F6.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.