Home > Visual Studio > Changing Visual Studio Shortcuts

Changing Visual Studio Shortcuts

November 29, 2007

OK, so I’ve been playing with VS2008 for a few days now, and I had a minor annoyance. At first, I was inclined to blame the designers, but it turns out it was my own fault, or rather, my own lack of knowledge.

My complaint was that in VS2005, “F6” is the Shortcut Key for “Build Solution”, but in VS2008 it had been returned to “Ctrl+Shift+B” (like VS2003). At first, I was upset by this, but I did a little digging and was chagrined to find that my VS2005 Keyboard Settings had been changed from “Default” to “Visual C# 2005”. I checked in VS2008, and sure enough when I changed the Mapping Scheme to “Visual C# 2005”, my beloved F6 had been restored. There are several options here (none of which is C# 2008).

In the process, I also found that you can set these Shortcuts yourself. If you do not want to switch, but instead wish to customize the Default settings (which can always be restored later), follow these steps:

  1. Go to Tools -> Options -> Keyboard.
  2. In “Show Commands Containing”, type “Window.NextSplitPane” (this is what F6 points to now – I found this out by first by skipping all the other steps and going directly to #8 below).
  3. The Current Shortcut “F6” for “Window.NextSplitPane” will be shown in the “Shortcuts for Selected Command Box”.
  4. Press the “Remove” button.
  5. Go back to the “Show Commands Containing” and type “Build Solution”.
  6. The Current Shortcut “Ctrl+Shift+B” for “Build.BuildSolution” will be shown in the “Shortcuts for Selected Command Box”.
  7. You do NOT need to Remove this, but you can if you wish. To do so, press the “Remove” button again.
  8. Put your cursor in the “Press shortcutkeys” textbox and press the “F6” function key.
  9. Press the “Assign” button.
  10. Press the “OK” button to save your changes.

Changes to the Keyboard Mapping Scheme should show immediately in the IDE. You can have multiple shortcuts for a given function, but naturally a shortcut can only be assigned once.

Now, obviously, I had changed the Keyboard Mapping Scheme in VS2005, I just don’t remember doing it. Visual Studio is just such an incredible tool with so many options: I’ll bet that most of us don’t know the half of it. And something like this you may do once, to tweak your setup, and then never think about again. At any rate, I hope this helps someone out there.

Categories: Visual Studio
  1. July 16, 2008 at 1:38 pm

    thanks….. I’ve found what i’ looking for…..
    God bless!

  2. Grant
    July 23, 2008 at 9:37 am

    I want to change my ctrl-C to ctrl-J. I followed the procedure you described so now Edit.Copy is ctrl-J (global). Well, ctrl-J shows my intellisense and does not copy. Do I need to find the property that ctrl-J is connected to and disable it first?

  3. July 24, 2008 at 8:59 am

    I can’t say 100%, but it seems reasonable that you have created a conflict. Try finding the function that currently uses Ctrl-J and change or remove the keyboard shortcut. Be sure to let us know what you find.

  4. Armando Mendez
    October 21, 2008 at 11:40 am

    Thank you for the tip. I needed it. Just like you, I was used to my F6. Now I have to figure out what ever happened to my Immediate window… 🙂

  5. Mike
    October 7, 2009 at 8:45 pm

    Thanks for the great article. I’m learning new shortcuts all the time and creating new ones.
    Easily Learn Visual Studio…watch,listen..learn”

  6. Anthony
    December 9, 2010 at 8:49 am

    Extremely helpful!

  1. April 11, 2009 at 9:11 am
Comments are closed.