Moby Disk Consulting
Software Development, Training & Consulting
William Garrison - mobydisk at mobydisk daht com

Visual Studio .NET shortcut keys

When I first moved from Microsoft Visual Studio 6 to .NET, I found that few of the shortcut keys were the same. This drove me absolutely crazy. Furthermore, there is no list in the help, or on MSDN, of what the shortcut keys are!

The good news is that the list can be obtained via a macro although the names are not always self explanatory.  (Ex: F8 is listed as Edit.GotoNextLocation which I call "Find next")

There are 3 ways to get to the list:

  1. Use the one I have below. It may differ slightly from your setup.
  2. You can view each action manually under Tools-Options-Environment-Keyboard.
  3. You can run a macro to create an HTML list.

Shortcut key macro

Imports EnvDTE
Imports System.Diagnostics

Public Module KeyboardShortcuts

    Sub ListCommands()
        Dim i As Integer
        Dim j As Integer
        Dim pane As OutputWindowPane = Utilities.GeToutputWindowPane("Commands")
        Dim keys As System.Array
        For i = 1 To DTE.Commands.Count
            keys = DTE.Commands.Item(i).Bindings
            If keys.Length >  0 Then
                pane.OutputString("<tr><td>" + DTE.Commands.Item(i).Name() + "</td><td>")
                For j = 0 To keys.Length - 1
                    If j >  0 Then
                        pane.OutputString("<br/>")
                    End If
                    pane.OutputString(keys(j))
                Next
                pane.OutputString("</td></tr>" + Chr(10))
            End If
        Next

    End Sub 
End Module

To run this macro, go to Tools - Macros - IDE. Create a new Module named "KeyboardShortcuts" under "MyMacros" and paste the above code into the module. Next, copy the "Utilities" module from "Samples" into "MyMacros." Make sure it builds with no errors. Now, close the macro IDE window. Go to Tools - Macros - Macro Explorer. A new macro named "ListCommands" will be under "KeyboardShortcuts." Double-click it to run the macro. The macro will take a minute or so and write the keyboard shortcuts into the "output" window.

Update: Jason Doucette has an improved shortcuts macro based on this one.

Shortcut key list

Below is a list of the default shortcut keys for my VS.NET:

ActionKey
View.ViewCode Global::F7
View.ViewDesigner Global::Shift+F7
Global::Alt+Enter
File.OpenFile Global::Ctrl+O
File.SaveSelectedItems Global::Ctrl+S
File.SaveAll Global::Ctrl+Shift+S
Edit.Cut Global::Ctrl+X
Global::Shift+Del
Edit.Copy Global::Ctrl+C
Global::Ctrl+Ins
Edit.Paste Global::Ctrl+V
Global::Shift+Ins
View.NavigateForward Global::Ctrl+Shift+-
Debug.Start Global::F5
Edit.FindinFiles Global::Ctrl+Shift+F
Edit.GoToFindCombo Global::Ctrl+D
View.SolutionExplorer Global::Ctrl+Alt+L
View.PropertiesWindow Global::F4
View.ObjectBrowser Global::Ctrl+Alt+J
View.Toolbox Global::Ctrl+Alt+X
File.NewProject Global::Ctrl+Shift+N
Edit.Undo Global::Ctrl+Z
Global::Alt+Bkspce
View.NextView HTML Editor HTML View::Ctrl+PgDn
HTML Editor Design View::Ctrl+PgDn
XML Editor Schema View::Ctrl+PgDn
XML Editor Data View::Ctrl+PgDn
View.VisibleBorders HTML Editor Design View::Ctrl+Q
View.Details HTML Editor Design View::Ctrl+Shift+Q
Project.Override Global::Ctrl+Alt+Ins
File.AddNewItem Global::Ctrl+Shift+A
File.AddExistingItem Global::Shift+Alt+A
Build.BuildSolution Global::Ctrl+Shift+B
Build.Cancel Global::Ctrl+Break
Build.Compile Global::Ctrl+F7
Debug.Breakpoints Global::Ctrl+Alt+B
Debug.RunningDocuments Global::Ctrl+Alt+N
Debug.Watch1 Global::Ctrl+Alt+W, 1
Debug.Watch2 Global::Ctrl+Alt+W, 2
Debug.Watch3 Global::Ctrl+Alt+W, 3
Debug.Watch4 Global::Ctrl+Alt+W, 4
Debug.Autos Global::Ctrl+Alt+V, A
Debug.Locals Global::Ctrl+Alt+V, L
Debug.This Global::Ctrl+Alt+V, T
Debug.Immediate Global::Ctrl+Alt+I
Debug.CallStack Global::Ctrl+Alt+C
Debug.Threads Global::Ctrl+Alt+H
Debug.Modules Global::Ctrl+Alt+U
Debug.Memory1 Global::Ctrl+Alt+M, 1
Debug.Memory2 Global::Ctrl+Alt+M, 2
Debug.Memory3 Global::Ctrl+Alt+M, 3
Debug.Memory4 Global::Ctrl+Alt+M, 4
Debug.Disassembly Global::Ctrl+Alt+D
Debug.Registers Global::Ctrl+Alt+G
Debug.ToggleDisassembly Global::Ctrl+F11
Debug.StartWithoutDebugging Global::Ctrl+F5
Debug.BreakAll Global::Ctrl+Alt+Break
Debug.StopDebugging Global::Shift+F5
Debug.Restart Global::Ctrl+Shift+F5
Debug.ApplyCodeChanges Global::Alt+F10
Debug.Exceptions Global::Ctrl+Alt+E
Debug.StepInto Global::F11
Debug.StepOver Global::F10
Debug.StepOut Global::Shift+F11
Debug.QuickWatch Global::Ctrl+Alt+Q
Global::Shift+F9
Debug.NewBreakpoint Global::Ctrl+B
Debug.ClearAllBreakpoints Global::Ctrl+Shift+F9
Database.Run Global::Ctrl+E
Database.RunSelection Global::Ctrl+Q
Database.StepInto Global::Alt+F5
Schema.Expand XML Editor Schema View::Ctrl+=
Schema.Collapse XML Editor Schema View::Ctrl+-
Query.Run Query Designer::Ctrl+R
View Designer::Ctrl+R
Format.Bold HTML Editor Design View::Ctrl+B
Format.Italic HTML Editor Design View::Ctrl+I
Format.Underline HTML Editor Design View::Ctrl+U
Format.ConverttoHyperlink HTML Editor Design View::Ctrl+L
Format.InsertBookmark HTML Editor Design View::Ctrl+Shift+L
Format.DecreaseIndent HTML Editor Design View::Ctrl+Shift+T
Format.IncreaseIndent HTML Editor Design View::Ctrl+T
Format.AlignLefts VC Dialog Editor::Ctrl+Shift+Left Arrow
Format.AlignCenters VC Dialog Editor::Shift+F9
Format.AlignRights VC Dialog Editor::Ctrl+Shift+Right Arrow
Format.AlignTops VC Dialog Editor::Ctrl+Shift+Up Arrow
Format.AlignMiddles VC Dialog Editor::F9
Format.AlignBottoms VC Dialog Editor::Ctrl+Shift+Down Arrow
Format.SpaceAcross VC Dialog Editor::Alt+Left Arrow
VC Dialog Editor::Alt+Right Arrow
Format.SpaceDown VC Dialog Editor::Alt+Down Arrow
VC Dialog Editor::Alt+Up Arrow
Format.ButtonRight VC Dialog Editor::Ctrl+R
Format.ButtonBottom VC Dialog Editor::Ctrl+B
Format.CenterVertical VC Dialog Editor::Ctrl+F9
Format.CenterHorizontal VC Dialog Editor::Ctrl+Shift+F9
Format.SizetoContent VC Dialog Editor::Shift+F7
Format.TabOrder VC Dialog Editor::Ctrl+D
Format.ShowGrid HTML Editor Design View::Ctrl+G
Format.SnaptoGrid HTML Editor Design View::Ctrl+Shift+G
Format.ToggleGuides VC Dialog Editor::Ctrl+G
Format.CheckMnemonics VC Dialog Editor::Ctrl+M
Format.TestDialog VC Dialog Editor::Ctrl+T
Format.LockElement HTML Editor Design View::Ctrl+Shift+K
Table.InsertColumntotheLeft HTML Editor Design View::Ctrl+Alt+Left Arrow
Table.InsertColumntotheRight HTML Editor Design View::Ctrl+Alt+Right Arrow
Table.InsertRowAbove HTML Editor Design View::Ctrl+Alt+Up Arrow
Table.InsertRowBelow HTML Editor Design View::Ctrl+Alt+Down Arrow
Tools.DebugProcesses Global::Ctrl+Alt+P
Image.FlipHorizontal VC Image Editor::Ctrl+H
Image.FlipVertical VC Image Editor::Shift+Alt+H
Image.Rotate90Degrees VC Image Editor::Ctrl+Shift+H
Image.UseSelectionasBrush VC Image Editor::Ctrl+U
Image.CopyAndOutlineSelection VC Image Editor::Ctrl+Shift+U
Image.DrawOpaque VC Image Editor::Ctrl+J
Image.NewImageType VC Image Editor::Ins
Image.RectangleSelectionTool VC Image Editor::Shift+Alt+S
Image.EraseTool VC Image Editor::Ctrl+Shift+I
Image.FillTool VC Image Editor::Ctrl+F
Image.MagnificationTool VC Image Editor::Ctrl+M
Image.PencilTool VC Image Editor::Ctrl+I
Image.BrushTool VC Image Editor::Ctrl+B
Image.AirbrushTool VC Image Editor::Ctrl+A
Image.LineTool VC Image Editor::Ctrl+L
Image.TextTool VC Image Editor::Ctrl+T
Image.RectangleTool VC Image Editor::Alt+R
Image.OutlinedRectangleTool VC Image Editor::Shift+Alt+R
Image.FilledRectangleTool VC Image Editor::Ctrl+Shift+Alt+R
Image.RoundedRectangleTool VC Image Editor::Alt+W
Image.OutlinedRoundedRectangleTool VC Image Editor::Shift+Alt+W
Image.FilledRoundedRectangleTool VC Image Editor::Ctrl+Shift+Alt+W
Image.EllipseTool VC Image Editor::Alt+P
Image.OutlinedEllipseTool VC Image Editor::Shift+Alt+P
Image.FilledEllipseTool VC Image Editor::Ctrl+Shift+Alt+P
Image.ShowTileGrid VC Image Editor::Ctrl+Shift+Alt+S
Image.ShowGrid VC Image Editor::Ctrl+Alt+S
Image.LargerBrush VC Image Editor::Ctrl+=
Image.SmallerBrush VC Image Editor::Ctrl+-
Image.SmallBrush VC Image Editor::Ctrl+.
Image.ZoomIn VC Image Editor::Ctrl+Up Arrow
VC Image Editor::Ctrl+Shift+.
Image.ZoomOut VC Image Editor::Ctrl+Down Arrow
VC Image Editor::Ctrl+Shift+,
Image.PreviousColor VC Image Editor::Ctrl+Left Arrow
VC Image Editor::Ctrl+[
Image.PreviousRightColor VC Image Editor::Ctrl+Shift+Left Arrow
VC Image Editor::Ctrl+Shift+[
Image.NextColor VC Image Editor::Ctrl+Right Arrow
VC Image Editor::Ctrl+]
Image.NextRightColor VC Image Editor::Ctrl+Shift+Right Arrow
VC Image Editor::Ctrl+Shift+]
Image.Magnify VC Image Editor::Ctrl+Shift+M
Help.DynamicHelp Global::Ctrl+F1
View.NavigateBackward Global::Ctrl+-
View.ClassView Global::Ctrl+Shift+C
View.ServerExplorer Global::Ctrl+Alt+S
View.ResourceView Global::Ctrl+Shift+E
View.MacroExplorer Global::Alt+F8
View.DocumentOutline Global::Ctrl+Alt+T
View.TaskList Global::Ctrl+Alt+K
View.CommandWindow Global::Ctrl+Alt+A
View.Output Global::Ctrl+Alt+O
View.FindSymbolResults Global::Ctrl+Alt+F12
View.Favorites Global::Ctrl+Alt+F
File.Print Global::Ctrl+P
Edit.Redo Global::Ctrl+Y
Global::Shift+Alt+Bkspce
Global::Ctrl+Shift+Z
Edit.SelectAll Global::Ctrl+A
Edit.Find Global::Ctrl+F
Edit.OpenFile Global::Ctrl+Shift+G
Tools.RunTemporaryMacro Global::Ctrl+Shift+P
Tools.RecordTemporaryMacro Global::Ctrl+Shift+R
Tools.MacrosIDE Global::Alt+F11
File.OpenProject Global::Ctrl+Shift+O
File.NewFile Global::Ctrl+N
Edit.Replace Global::Ctrl+H
Edit.GoTo Global::Ctrl+G
View.PropertyPages Global::Shift+F4
View.FullScreen Global::Shift+Alt+Enter
Debug.RunToCursor Global::Ctrl+F10
Debug.ToggleBreakpoint Global::F9
Help.Contents Global::Ctrl+Alt+F1
Help.Index Global::Ctrl+Alt+F2
Debug.SetNextStatement Global::Ctrl+Shift+F10
Help.Search Global::Ctrl+Alt+F3
Debug.ShowNextStatement Global::Alt+Num *
Help.Searchresults Global::Shift+Alt+F3
Help.Indexresults Global::Shift+Alt+F2
Edit.Wildcard Global::Alt+F3, P
Edit.ReplaceinFiles Global::Ctrl+Shift+H
Global::Ctrl+5
Edit.GotoNextLocation Global::F8
Edit.GotoPreviousLocation Global::Shift+F8
Global::Ctrl+6
Window.NextTab Global::Ctrl+PgDn
Window.PreviousTab Global::Ctrl+PgUp
HTML Editor HTML View::Ctrl+PgUp
Window.CloseToolWindow Global::Shift+Esc
Global::Ctrl+7
Window.ActivateDocumentWindow Global::Esc
Window.MovetoDropdownBar Global::Ctrl+F2
Window.NextPane Global::Alt+F6
Window.PreviousPane Global::Shift+Alt+F6
Global::Ctrl+Shift+Alt+T
Global::F2
Edit.HiddenText Global::Alt+F3, H
Edit.MatchCase Global::Alt+F3, C
Edit.WholeWord Global::Alt+F3, W
Edit.RegularExpression Global::Alt+F3, R
Edit.Up Global::Alt+F3, B
Edit.StopSearch Global::Alt+F3, S
View.NextTask Global::Ctrl+Shift+F12
Edit.FindNext Global::F3
Edit.FindPrevious Global::Shift+F3
Edit.FindNextSelected Global::Ctrl+F3
Edit.FindPreviousSelected Global::Ctrl+Shift+F3
Debug.EnableBreakpoint Global::Ctrl+F9
Help.F1Help Global::F1
Tools.GoToCommandLine Global::Ctrl+/
Window.NextSplitPane Global::F6
Window.PreviousSplitPane Global::Shift+F6
Window.NextDocumentWindow Global::Ctrl+F6
Global::Ctrl+Tab
Window.PreviousDocumentWindow Global::Ctrl+Shift+F6
Global::Ctrl+Shift+Tab
Edit.CycleClipboardRing Global::Ctrl+Shift+V
Global::Ctrl+Shift+Ins
Window.CloseDocumentWindow Global::Ctrl+F4
Tools.CommandWindowMarkMode Global::Ctrl+Shift+M
Edit.GoToDefinition Global::F12
Edit.GoToDeclaration Global::Ctrl+F12
View.ObjectBrowserBack Global::Alt+-
View.ObjectBrowserForward Global::Shift+Alt+-
Edit.FindSymbol Global::Alt+F12
Help.WindowHelp Global::Shift+F1
View.PopBrowseContext Global::Ctrl+Shift+8
Edit.GoToReference Global::Shift+F12
View.BrowseNext Global::Ctrl+Shift+1
View.BrowsePrevious Global::Ctrl+Shift+2
Edit.QuickFindSymbol Global::Shift+Alt+F12
Edit.MoveControlLeft Global::Ctrl+Left Arrow
VC Dialog Editor::Left Arrow
Windows Forms Designer::Ctrl+Left Arrow
Edit.MoveControlDown Global::Ctrl+Down Arrow
VC Dialog Editor::Down Arrow
Windows Forms Designer::Ctrl+Down Arrow
Edit.MoveControlRight Global::Ctrl+Right Arrow
VC Dialog Editor::Right Arrow
Windows Forms Designer::Ctrl+Right Arrow
Edit.MoveControlUp Global::Ctrl+Up Arrow
VC Dialog Editor::Up Arrow
Windows Forms Designer::Ctrl+Up Arrow
Edit.SizeControlDown Global::Ctrl+Shift+Down Arrow
VC Dialog Editor::Shift+Down Arrow
Windows Forms Designer::Ctrl+Shift+Down Arrow
Edit.SizeControlUp Global::Ctrl+Shift+Up Arrow
VC Dialog Editor::Shift+Up Arrow
Windows Forms Designer::Ctrl+Shift+Up Arrow
Edit.SizeControlLeft Global::Ctrl+Shift+Left Arrow
VC Dialog Editor::Shift+Left Arrow
Windows Forms Designer::Ctrl+Shift+Left Arrow
Edit.SizeControlRight Global::Ctrl+Shift+Right Arrow
VC Dialog Editor::Shift+Right Arrow
Windows Forms Designer::Ctrl+Shift+Right Arrow
Edit.ShowTileGrid Global::Enter
Edit.MoveControlUpGrid Global::Up Arrow
Edit.MoveControlDownGrid Global::Down Arrow
Edit.MoveControlLeftGrid Global::Left Arrow
Edit.MoveControlRightGrid Global::Right Arrow
Edit.SizeControlRightGrid Global::Shift+Right Arrow
Edit.SizeControlUpGrid Global::Shift+Up Arrow
Edit.SizeControlLeftGrid Global::Shift+Left Arrow
Edit.SizeControlDownGrid Global::Shift+Down Arrow
Edit.SelectNextControl Global::Tab
Edit.SelectPreviousControl Global::Shift+Tab
Global::Alt+F9, D
Global::Alt+F9, P
Global::Alt+F9, S
Global::Alt+F9, A
View.ShowWebBrowser Global::Ctrl+Alt+R
View.WebNavigateBack WebBrowser::Alt+Left Arrow
View.WebNavigateForward WebBrowser::Alt+Right Arrow
Help.Nexttopic WebBrowser::Alt+Down Arrow
Help.Previoustopic WebBrowser::Alt+Up Arrow
Edit.Delete Global::Del
Edit.DeleteBackwards Text Editor::Shift+Bkspce
Text Editor::Bkspce
Edit.BreakLine Text Editor::Shift+Enter
Text Editor::Enter
Windows Forms Designer::Enter
Edit.InsertTab Text Editor::Tab
Windows Forms Designer::Tab
Edit.TabLeft Text Editor::Shift+Tab
Windows Forms Designer::Shift+Tab
Edit.CharLeft Text Editor::Left Arrow
Windows Forms Designer::Left Arrow
Edit.CharLeftExtend Text Editor::Shift+Left Arrow
Windows Forms Designer::Shift+Left Arrow
Edit.CharRight Text Editor::Right Arrow
Windows Forms Designer::Right Arrow
Edit.CharRightExtend Text Editor::Shift+Right Arrow
Windows Forms Designer::Shift+Right Arrow
Edit.LineUp Text Editor::Up Arrow
Windows Forms Designer::Up Arrow
Edit.LineUpExtend Text Editor::Shift+Up Arrow
Windows Forms Designer::Shift+Down Arrow
Edit.LineDown Text Editor::Down Arrow
Windows Forms Designer::Down Arrow
Edit.LineDownExtend Text Editor::Shift+Down Arrow
Windows Forms Designer::Shift+Up Arrow
Edit.DocumentStart Text Editor::Ctrl+Home
Edit.DocumentStartExtend Text Editor::Ctrl+Shift+Home
Edit.DocumentEnd Text Editor::Ctrl+End
Edit.DocumentEndExtend Text Editor::Ctrl+Shift+End
Edit.LineStart Text Editor::Home
Edit.LineStartExtend Text Editor::Shift+Home
Edit.LineEnd Text Editor::End
Edit.LineEndExtend Text Editor::Shift+End
Edit.PageUp Text Editor::PgUp
Edit.PageUpExtend Text Editor::Shift+PgUp
Edit.PageDown Text Editor::PgDn
Edit.PageDownExtend Text Editor::Shift+PgDn
Edit.ViewTop Text Editor::Ctrl+PgUp
Edit.ViewTopExtend Text Editor::Ctrl+Shift+PgUp
Edit.ViewBottom Text Editor::Ctrl+PgDn
Edit.ViewBottomExtend Text Editor::Ctrl+Shift+PgDn
Edit.ScrollLineUp Text Editor::Ctrl+Up Arrow
VC Dialog Editor::Ctrl+Up Arrow
Edit.ScrollLineDown Text Editor::Ctrl+Down Arrow
VC Dialog Editor::Ctrl+Down Arrow
Edit.MakeLowercase Text Editor::Ctrl+U
Edit.MakeUppercase Text Editor::Ctrl+Shift+U
Edit.SwapAnchor Text Editor::Ctrl+R, Ctrl+P
Edit.GotoBrace Text Editor::Ctrl+]
Edit.GotoBraceExtend Text Editor::Ctrl+Shift+]
Edit.OvertypeMode Text Editor::Ins
Edit.LineCut Text Editor::Ctrl+L
Edit.LineDelete Text Editor::Ctrl+Shift+L
Edit.DeleteHorizontalWhiteSpace Text Editor::Ctrl+K, Ctrl+\
Edit.LineOpenAbove Text Editor::Ctrl+Enter
Edit.LineOpenBelow Text Editor::Ctrl+Shift+Enter
Edit.ClearBookmarks Text Editor::Ctrl+K, Ctrl+L
Edit.ToggleBookmark Text Editor::Ctrl+K, Ctrl+K
Edit.NextBookmark Text Editor::Ctrl+K, Ctrl+N
Edit.PreviousBookmark Text Editor::Ctrl+K, Ctrl+P
Edit.CharTranspose Text Editor::Ctrl+T
Edit.WordTranspose Text Editor::Ctrl+Shift+T
Edit.LineTranspose Text Editor::Shift+Alt+T
Edit.SelectCurrentWord Text Editor::Ctrl+W
Edit.WordDeleteToEnd Text Editor::Ctrl+Del
Edit.WordDeleteToStart Text Editor::Ctrl+Bkspce
Edit.WordPrevious Text Editor::Ctrl+Left Arrow
Edit.WordPreviousExtend Text Editor::Ctrl+Shift+Left Arrow
Edit.WordNext Text Editor::Ctrl+Right Arrow
Edit.WordNextExtend Text Editor::Ctrl+Shift+Right Arrow
Edit.SelectionCancel Text Editor::Esc
Windows Forms Designer::Esc
Edit.ParameterInfo Text Editor::Ctrl+Shift+Space
Edit.ViewWhiteSpace Text Editor::Ctrl+R, Ctrl+W
Edit.CompleteWord Text Editor::Alt+Right Arrow
Text Editor::Ctrl+Space
Edit.ListMembers Text Editor::Ctrl+J
Edit.FormatSelection Text Editor::Ctrl+K, Ctrl+F
Edit.ToggleTaskListShortcut Text Editor::Ctrl+K, Ctrl+H
Edit.QuickInfo Text Editor::Ctrl+K, Ctrl+I
Edit.CharLeftExtendColumn Text Editor::Shift+Alt+Left Arrow
Edit.CharRightExtendColumn Text Editor::Shift+Alt+Right Arrow
Edit.LineUpExtendColumn Text Editor::Shift+Alt+Up Arrow
Edit.LineDownExtendColumn Text Editor::Shift+Alt+Down Arrow
Edit.ToggleWordWrap Text Editor::Ctrl+R, Ctrl+R
Edit.IncrementalSearch Text Editor::Ctrl+I
Edit.ReverseIncrementalSearch Text Editor::Ctrl+Shift+I
Edit.LineStartExtendColumn Text Editor::Shift+Alt+Home
Edit.LineEndExtendColumn Text Editor::Shift+Alt+End
Edit.WordPreviousExtendColumn Text Editor::Ctrl+Shift+Alt+Left Arrow
Edit.WordNextExtendColumn Text Editor::Ctrl+Shift+Alt+Right Arrow
Edit.HideSelection Text Editor::Ctrl+M, Ctrl+H
Edit.ToggleOutliningExpansion Text Editor::Ctrl+M, Ctrl+M
Edit.ToggleAllOutlining Text Editor::Ctrl+M, Ctrl+L
Edit.StopOutlining Text Editor::Ctrl+M, Ctrl+P
Edit.StopHidingCurrent Text Editor::Ctrl+M, Ctrl+U
Edit.CollapsetoDefinitions Text Editor::Ctrl+M, Ctrl+O
Edit.CommentSelection Text Editor::Ctrl+K, Ctrl+C
Edit.UncommentSelection Text Editor::Ctrl+K, Ctrl+U
Edit.SelectToLastGoBack Text Editor::Ctrl+=
Edit.FormatDocument Text Editor::Ctrl+K, Ctrl+D
HTML Editor HTML View::Ctrl+Shift+.
Edit.ScrollColumnLeft VC Dialog Editor::Ctrl+Left Arrow
Edit.ScrollColumnRight VC Dialog Editor::Ctrl+Right Arrow
Edit.NewString VC String Editor::Ins
Edit.NewAccelerator VC Accelerator Editor::Ins
Edit.NextKeyTyped VC Accelerator Editor::Ctrl+W
View.SQL Query Designer::Ctrl+3
View Designer::Ctrl+3
View.Diagram Query Designer::Ctrl+1
View Designer::Ctrl+1
View.Results Query Designer::Ctrl+4
View Designer::Ctrl+4
View.Grid Query Designer::Ctrl+2
View Designer::Ctrl+2
Windows Forms Designer::Shift+Esc

Thanks

This trick is not my own. I found the original macro on the microsoft.public.vsnet.ide newsgroup. The original version of the script was created by "Lance" on the Visual Studio Core Team.   Thanks Lance!