Visual Basic 6.0 Default Shortcut Keys


CommandShortcut KeysDescription

Global shortcut keys

The following shortcut key combinations can be used in various places within the integrated development environment (IDE).
CommandShortcut KeysDescription
Edit.CopyCTRL+C
CTRL+INSERT
Places a duplicate of the currently selected item on the system clipboard.
Edit.CutCTRL+X
SHIFT+DELETE
Removes the currently selected item to the system clipboard.
Edit.CycleClipboardRingCTRL+SHIFT+V
CTRL+SHIFT+INSERT
Pastes an item from the Clipboard Ring tab of the Toolbox at the insertion point in the file and automatically selects the pasted item. You can review each item on the Clipboard by repeatedly pressing the shortcut keys.
Edit.DeleteDELETEDeletes one character to the right.
Edit.DeleteBackwardsBACKSPACE
SHIFT+BACKSPACE
Deletes one character to the left.
Edit.GotoNextLocationF12Moves the cursor to the next item, such as a task in the Task List window or a search match in the Find Results window. Each time you press F12, you move to the next item in the list.
Edit.GotoPreviousLocationSHIFT+F12Moves the cursor to the previous item in the Task List window or Find Results window.
Edit.ListMembersCTRL+JLists members of the current class for statement completion when editing code.
Edit.ParameterInfoCTRL+SHIFT+IDisplays a ToolTip that contains information for the current parameter based on the current language.
Edit.PasteCTRL+V
SHIFT+INSERT
Inserts the Clipboard contents at the insertion point.
Edit.QuickInfoCTRL+IDisplays the complete declaration for the identifier nearest the insertion point in a ToolTip.
Edit.RedoCTRL+SHIFT+Z
SHIFT+ALT+BACKSPACE
Restores the previously undone action.
Edit.SelectionCancelESCCloses a menu or dialog box, cancels an operation in progress, or places focus in the current document window.
Edit.UndoALT+BACKSPACE
CTRL+Z
Reverses the last editing action.
File.AddExistingItemCTRL+DDisplays the Add Existing Item dialog box, which allows you to add an existing file to the current project.
File.AddNewItemCTRL+SHIFT+ADisplays the Add New Item dialog box, which allows you to add a new file to the current project.
File.ExitALT+QExits the integrated development environment.
File.PrintCTRL+PDisplays the Print dialog box where you can choose printer settings.
File.SaveAllCTRL+SHIFT+SSaves all documents in the current solution and any files in the external files project.
File.SaveSelectedItemsCTRL+SSaves the selected items in the current project.
Tools.GoToCommandLineCTRL+/Places the caret in the Find/Command box on the Standard toolbar.
View.NavigateBackwardCTRL+SHIFT+F2Goes back to the previous document or window in the navigation history.
View.NavigateForwardCTRL+SHIFT+-Moves forward to the next document or window in the navigation history.
View.WebNavigateBackALT+LEFT ARROWDisplays the previous page in the viewing history. Available only in the integrated Web browser.
View.WebNavigateForwardALT+RIGHT ARROWDisplays the next page in the viewing history. Available only in the integrated Web browser.

Integrated Help shortcut keys

The following shortcut key combinations can be used to view and move among topics in Help.
Command NameShortcut KeysDescription
Help.ContentsCTRL+ALT+F1Displays the Contents window for the documentation contained in MSDN.
Help.DynamicHelpCTRL+F1Displays the Dynamic Help window, which displays different topics depending on what items currently have focus in the product.
Help.F1HelpF1Displays a topic from Help that corresponds to the current user interface selected.
Help.IndexCTRL+ALT+F2Displays the Index window for the documentation contained in MSDN.
Help.IndexresultsSHIFT+ALT+F2Displays the Index Results window, which lists the topics that contain the keyword selected in the Index window.
Help.NexttopicALT+DOWN ARROWDisplays the next topic in the table of contents. Available only in the Help (Web) browser window.
Help.PrevioustopicALT+UP ARROWDisplays the previous topic in the table of contents. Available only in the Help (Web) browser window.
Help.SearchCTRL+ALT+F3Displays the Search window, which allows you to search for words or phrases in the documentation contained in MSDN.
Help.SearchresultsSHIFT+ALT+F3Displays the Search Results window, which displays a list of topics that contain the string searched for from the Search window.
Help.WindowHelpSHIFT+F1Displays a topic from Help that corresponds to the current user interface selected.

Project shortcut keys

The following shortcut key combinations can be used to add new items to a project, build a project, or open files or projects.
Command NameShortcut KeysDescription
Build.BuildSolutionCTRL+SHIFT+BBuilds all of the projects in the solution using the current solution configuration.
Build.CompileCTRL+F7Creates an object file containing machine code, linker directives, sections, external references, and function/data names for the selected file.
File.NewFileCTRL+SHIFT+NDisplays the New File dialog box where you can select a new file to add to the current project.
File.NewProjectCTRL+NDisplays the New Project dialog box where you can create projects and add them to the current solution.
File.OpenFileCTRL+SHIFT+ODisplays the Open File dialog box where you can select an existing file to open.
File.OpenProjectCTRL+ODisplays the Open Project dialog box where you can add existing projects to your solution.
File.AddExistingItemCTRL+DDisplays the Add Existing Item dialog box, which allows you to add an existing file to the current project.
File.AddNewItemCTRL+SHIFT+ADisplays the Add New Item dialog box, which allows you to add a new file to the current project.
Project.RunSelectionCTRL+QRuns the current selection.

HTML Designer shortcut keys

The following shortcut key combinations can only be used while editing in the HTML Designer. Certain key combinations are only available in a specific view of that designer.
CommandShortcut KeysDescription
Edit.CharTransposeCTRL+TSwaps the characters on either side of the insertion point. For example, AC|BD becomes AB|CD. Only available in HTML view of the HTML Designer.
Edit.ClearAllBookmarksCTRL+K, CTRL+LRemoves all unnamed bookmarks in the current document. Only available in HTML view of the HTML Designer.
Edit.CompleteWordCTRL+SPACEBARDisplays Word Completion based on the current language. Only available in HTML view of the HTML Editor.
Edit.MakeLowercaseCTRL+UChanges the selected text to lowercase characters. Available only in HTML view of the HTML Designer.
Edit.MakeUppercaseCTRL+SHIFT+UChanges the selected text to uppercase characters. Available only in HTML view of the HTML Designer.
Edit.NextBookmarkCTRL+K, CTRL+NMoves to the next bookmark in the document. Available only in HTML view of the HTML Designer.
Edit.WordDeleteToEndCTRL+DELETE
CTRL+SHIFT+BACKSPACE
Deletes the word to the right of the insertion point. Available only in HTML view of the HTML Designer.
Edit.WordDeleteToStartCTRL+BACKSPACEDeletes the word to the left of the insertion point. Available only in HTML view of the HTML Designer.
Format.BoldCTRL+BToggles the selected text between bold and normal. Available only in Design view of the HTML Designer.
Format.DecreaseIndentCTRL+SHIFT+TDecreases the selected paragraph by one indent unit. Available only in Design view of the HTML Designer.
Format.IncreaseIndentCTRL+TIndents the selected paragraph by one indent unit. Available only in Design view of the HTML Designer.
Format.ItalicCTRL+IToggles the selected text between italic and normal. Available only in Design view of the HTML Designer.
Format.LockElementCTRL+SHIFT+KPrevents an absolutely positioned element from being inadvertently moved. Available only in Design view of the HTML Designer.
Format.ShowGridCTRL+GToggles snap to grid. Available only in Design view of the HTML Designer.
Format.SnaptoGridCTRL+SHIFT GSpecifies that elements be aligned using an invisible grid. You can set grid spacing on the Display pane of HTML Designer options in the Options dialog box, and the grid will be changed the next time you open a document. Available only in Design view of the HTML Designer.
Format.UnderlineCTRL+UToggles the selected text between underlined and normal. Available only in Design view of the HTML Designer.
Format.InsertBookmarkCTRL+SHIFT+LDisplays the Bookmark dialog box, which allows you to create a target for jumps within the current document. Available in Design View and HTML View of the HTML Designer.
Format.ConverttoHyperlinkCTRL+LWhen text is selected, displays the Hyperlink dialog box. Available in Design View and HTML View of the HTML Designer.
Table.InsertRowAboveCTRL+ALT+UP ARROWAdds one row above the current row in the table. Available only in Design view of the HTML Designer.
Table.InsertRowBelowCTRL+ALT+DOWN ARROWAdds one row below the current row in the table. Available only in Design view of the HTML Designer.
Table.InsertColumnstotheLeftCTRL+ALT+LEFT ARROWAdds one column to the left of the current column in the table. Available only in Design view of the HTML Designer.
Table.InsertColumnstotheRightCTRL+ALT+RIGHT ARROWAdds one column to the right of the current column in the table. Available only in Design view of the HTML Designer.
View.DetailsCTRL+SHIFT+QDisplays signal icons for HTML elements that do not have a visual representation, such as comments, scripts, and anchors for absolutely positioned elements. Available only in Design View of the HTML Designer.
View.NextViewCTRL+PAGE DOWNSwitches from Design view to HTML view and vice versa. Available only in Design View of the HTML Designer.
View.VisibleBordersCTRL+QDisplays a 1-pixel border around HTML elements that support a BORDER attribute such as tables, table cells, and divisions, and has it set to zero. Available only in Design view of the HTML Designer.

Image editor shortcut keys

The following shortcut key combinations can be used in the Image editor.
CommandShortcut KeysDescription
Image.DrawOpaqueCTRL+JMakes the current selection either opaque or transparent. Available only in the Image editor.
Image.FlipHorizontalCTRL+HFlips the image from right to left on the horizontal axis. Available only in the Image editor.
Image.FlipVerticalSHIFT+ALT+HFlips the image from top to bottom on the vertical axis. Available only in the Image editor.
Image.NewImageTypeINSERTDisplays the New Icon Image Type dialog box, which allows you to select a new image type to create. Available only in the Image editor.
Image.Rotate90DegreesCTRL+SHIFT+HRotates the image 90 degrees clockwise. Available only in the Image editor.

Debug shortcut keys

The following shortcut key combinations can be used while debugging code.
CommandShortcut KeysDescription
Debug.ApplyCodeChangesALT+F10Applies the changes made to code without stopping the debugger.
Debug.AutosCTRL+ALT+V, ADisplays the Auto window to view the values of variables currently in the scope of the current line of execution within the current procedure.
Debug.BreakAllCTRL+BREAKTemporarily stops execution of all processes in a debugging session. Available only in Run mode.
Debug.BreakpointsCTRL+ALT+BDisplays the Breakpoints dialog box where you can add and modify breakpoints.
Debug.CallStackCTRL+LDisplays the Call Stack window to display a list of all active procedures or stack frames for the current thread of execution. Available only in Run mode.
Debug.ClearAllBreakpointsCTRL+SHIFT+F9Clears all of the breakpoints in the project.
Debug.DisassemblyCTRL+ALT+DDisplays the Disassembly dialog box.
Debug.ExceptionsCTRL+ALT+EDisplays the Exceptions dialog box.
Debug.ImmediateCTRL+GDisplays the Immediate window where you can evaluate expressions and execute individual commands.
Debug.LocalsCTRL+ALT+V, LDisplays the Locals window to view the variables and their values for each procedure in the current stack frame.
Debug.Memory1CTRL+ALT+M, 1Displays the Memory 1 window which allows you to view large buffers, strings, and other data that do not display well in the Watch or Variables window.
Debug.Memory2CTRL+ALT+M, 2Displays the Memory 2 window which allows you to view large buffers, strings, and other data that do not display well in the Watch or Variables window.
Debug.Memory3CTRL+ALT+M, 3Displays the Memory 3 window which allows you to view large buffers, strings, and other data that do not display well in the Watch or Variables window.
Debug.Memory4CTRL+ALT+M, 4Displays the Memory 4 window which allows you to view large buffers, strings, and other data that do not display well in the Watch or Variables window.
Debug.ModulesCTRL+ALT+UDisplays the Modules window which allows you to view the .dll or .exe files used by the program.
Debug.NewBreakpointCTRL+BInserts or clears a breakpoint in the current line of code.
Debug.QuickWatchSHIFT+F9Displays the Quick Watch dialog box with the current value of the selected expression. Available only in Break mode. Use this command to check the current value of a variable, property, or other expression for which you have not defined a watch expression.
Debug.RegistersCTRL +ALT+GDisplays the Registers window, which displays content for debugging Native code applications.
Debug.RestartSHIFT+F5Terminates a debugging session, rebuilds, and then starts running the application from the beginning. Available in Break and Run modes.
Debug.RunningDocumentsCTRL+ALT+NDisplays the Running Documents window that shows the set of documents that you are in the process of debugging. Available in Run mode.
Debug.RunToCursorCTRL+F8In Break mode, resumes execution of your code from the current statement to the selected statement. The Current Line of Execution margin indicator appears in the Margin Indicator bar. In Design mode, starts the debugger and executes your code to the cursor location.
Debug.SetNextStatementCTRL+F9Sets the execution point to the line of code you choose.
Debug.ShowNextStatementALT+NUM*Highlights the next statement to be executed.
Debug.StartF5Automatically attaches the debugger and runs the application from the startup form specified in the Properties dialog box. Changes to Continue if in Break mode.
Debug.StartWithoutDebuggingCTRL+F5Runs the code without invoking the debugger.
Debug.StepIntoF8Executes code one statement at a time, following execution into function calls.
Debug.StepOutCTRL+SHIFT+F8Executes the remaining lines of a function in which the current execution point lies.
Debug.StepOverSHIFT+F8Executes the next line of code, but does not follow execution through any function calls.
Debug.ThisCTRL+ALT+V, TDisplays the This window, which allows you to view the data members of the object associated with the current method.
Debug.ThreadsCTRL+ALT+HDisplays the Threads window to view all of the threads for the current process and information about them.
Debug.ToggleBreakpointF9Sets or removes a breakpoint at the current line.
Debug.ToggleDisassemblyCTRL+F11Displays the disassembly information for the current source file. Available only in Break mode.
Tools.DebugProcessesCTRL+ALT+PDisplays the Processes dialog box, which allows you to debug multiple programs at the same time in a single solution.

Search and replace shortcut keys

The following shortcut key combinations can be used with the Find, Replace, Find in Files, and Replace in Files dialog boxes.
CommandShortcut KeysDescription
Edit.FindCTRL+FDisplays the Find dialog box.
Edit.FindNextF3Finds the next occurrence of the previous search text.
Edit.FindNextSelectedCTRL+F3Finds the next occurrence of the currently selected text in the document.
Edit.FindPreviousSHIFT+F3Finds the previous occurrence of the search text.
Edit.FindPreviousSelectedCTRL+SHIFT+F3Finds the previous occurrence of the currently selected text, or the word at the caret.
Edit.GoToFindComboCTRL+SHIFT+FPlaces the caret in the Find/Command line on the Standard toolbar.
Edit.HiddenTextALT+F3, HSelects or clears the Search Hidden Text option for the Find dialog box.
Edit.IncrementalSearchCTRL+ALT+IStarts Incremental search. If Incremental search is started but you have not typed any characters, recalls the previous pattern. If text has been found, searches for the next occurrence.
Edit.MatchCaseALT+F3,+CSelects or clears the Match Case option for Find and Replace operations.
Edit.RegularExpressionALT+F3,+RSelects or clears the Regular expression option so that special characters can be used in Find and Replace operations.
Edit.ReplaceCTRL+HDisplays the Replace dialog box.
Edit.ReplaceinFilesCTRL+SHIFT+HDisplays the Replace in Files dialog box.
Edit.ReverseIncrementalSearchCTRL+SHIFT+ALT+IChanges the direction of Incremental search to begin at the bottom of the file and progress towards the top.
Edit.StopSearchALT+F3,+SHalts the current Find in Files operation.
Edit.UpALT+F3,+BSelects or clears the Search Up option for Find and Replace operations.
Edit.WholeWordALT+F3,+WSelects or clears the Match whole word option for Find and Replace operations.
Edit.WildcardALT+F3, PSelects or clears the Wildcard option for Find and Replace operations.

Visual Database Tools shortcut keys

The following shortcut key combinations can be used in the Database Designer or Query Designer.
CommandShortcut KeysDescription
Database.RunCTRL+RRuns the currently selected database object.
Database.StepIntoCTRL+ESteps into debug mode for the currently active database object.
Query.RunCTRL+RExecutes the query. Available only in Visual Database Tools.
View.DiagramCTRL+1Displays the Diagram pane of the Query designer. Available only in the Query and View designers.
View.GridCTRL+2Displays the Grid pane of the Query designer. Available only in the Query and View designers.
View.ResultsCTRL+4Displays the Results pane of the Query designer. Available only in the Query and View designers.
View.SQLCTRL+3Displays the SQL pane of the Query designer. Available only in the Query and View designers.

Object Browser shortcut keys

The following shortcut key combinations can be used while in the Object Browser window.
CommandShortcut KeysDescription
Edit.FindSymbolCTRL+SHIFT+Y
CTRL+SHIFT+ ALT+F12
Displays the Find Symbol dialog box.
View.FindSymbolResultsCTRL+ALT+YDisplays the Find Symbol Results window.
View.ObjectBrowserBackALT+-Moves back to the previously selected object in the selection history of the Object Browser.
View.ObjectBrowserForwardSHIFT+ALT+-Moves forward to the next object in the selection history of the Object Browser.

Control manipulation shortcut keys

The following shortcut key combinations can be used to move, select, and change the size of controls on design surfaces.
CommandShortcut KeysDescription
Edit.MoveControlDownCTRL+DOWN ARROWMoves the selected control down in increments of 1 on the design surface.
Edit.MoveControlDownGridDOWN ARROWMoves the selected control down in increments of 8 on the design surface.
Edit.MoveControlLeftCTRL+LEFT ARROWMoves the control left in increments of 1 on the design surface.
Edit.MoveControlLeftGridLEFT ARROWMoves the control left in increments of 8 on the design surface.
Edit.MoveControlRightCTRL+RIGHT ARROWMoves the control to the right in increments of 1 on the design surface.
Edit.MoveControlRightGridRIGHT ARROWMoves the control right in increments of 8 on the design surface.
Edit.MoveControlUpCTRL+UP ARROWMoves the control up in increments of 1 on the design surface.
Edit.MoveControlUpGridUP ARROWMoves the control up in increments of 8 on the design surface.
Edit.SelectNextControlTABSelects the next control on the design surface.
Edit.SelectPreviousControlSHIFT+TABSelects the previously selected control on the design surface.
Edit.SizeControlDownCTRL+SHIFT+DOWN ARROWIncreases the height of the control in increments of 1 on the design surface.
Edit.SizeControlDownGridSHIFT+DOWN ARROWIncreases the height of the control in increments of 8 on the design surface.
Edit.SizeControlLeftCTRL+SHIFT+LEFT ARROWReduces the width of the control in increments of 1 on the design surface.
Edit.SizeControlLeftGridSHIFT+LEFT ARROWReduces the width of the control in increments of 8 on the design surface.
Edit.SizeControlRightCTRL+SHIFT +RIGHT ARROWIncreases the width of the control in increments of 1 on the design surface.
Edit.SizeControlRightGridSHIFT+RIGHT ARROWIncreases the width of the control in increments of 8 on the design surface.
Edit.SizeControlUpCTRL+SHIFT+UP ARROWDecreases the height of the control in increments of 1 on the design surface.
Edit.SizeControlUpGridSHIFT+UP ARROWDecreases the height of the control in increments of 8 on the design surface.
Format.BringToFrontCTRL+JMoves the selected control to the top of the Z-order.

Text navigation shortcut keys

The following shortcut key combinations can be used in text editors to move within an open document.
CommandShortcut KeysDescription
Edit.CharLeftLEFT ARROWMoves the cursor left one character.
Edit.CharRightRIGHT ARROWMoves the cursor right one character.
Edit.DocumentEndCTRL+ENDMoves the insertion point to the last line of the document.
Edit.DocumentStartCTRL+HOMEMoves the insertion point to the first line of the document.
Edit.GotoBraceCTRL+]Moves the insertion point to the next brace in the document.
Edit.GoToDeclarationCTRL+ALT+F12Displays the definition of the selected symbol in the code.
Edit.GoToDefinitionSHIFT+F2Displays the declaration for the selected symbol in code.
Edit.LineDownDOWN ARROWMoves the insertion point down one line.
Edit.LineEndENDMoves the insertion point to the end of the line.
Edit.LineStartHOMEMoves the insertion point to the beginning of the line.
Edit.LineUpUP ARROWMoves the insertion point up one line.
Edit.PageDownPAGE DOWNScrolls the document down one page.
Edit.PageUpPAGE UPScrolls the document up one page.
Edit.PreviousBookmarkCTRL+K, CTRL+PMoves to the previous bookmark.
Edit.ScrollLineDownCTRL+DOWN ARROWScrolls text down one line.
Edit.ScrollLineUpCTRL+UP ARROWScrolls text up one line.
Edit.ToggleWordWrapCTRL+R, CTRL+REnables or disables word wrap in an editor.
Edit.ViewBottomCTRL+PAGE DOWNMoves to the bottom of the current document.
Edit.ViewTopCTRL+PAGE UPMoves to the top of the current window or document.
Edit.WordNextCTRL+RIGHT ARROWMoves the insertion point right one word.
Edit.WordPreviousCTRL+LEFT ARROWMoves the insertion point left one word.
View.ViewCodeF7Displays the selected item in Code view of the Editor.
View.ViewDesignerSHIFT+F7Displays the selected item in Design view of the Editor.

Text selection shortcut keys

The following shortcut key combinations can be used in text editors to select text within an open document.
CommandShortcut KeysDescription
Edit.CharLeftExtendSHIFT+LEFT ARROWMoves the cursor left one character, extending the selection.
Edit.CharLeftExtendColumnSHIFT+ALT+LEFT ARROWMoves the cursor left one character, extending the column selection.
Edit.CharRightExtendSHIFT+RIGHT ARROWMoves the cursor right one character, extending the selection.
Edit.CharRightExtendColumnSHIFT+ALT+RIGHT ARROWMoves the cursor right one character, extending the column selection.
Edit.DocumentEndExtendCTRL+SHIFT+ENDSelects the text from the insertion point to the last line of the document.
Edit.DocumentStartExtendCTRL+SHIFT+HOMESelects the text from the insertion point to the first line of the document.
Edit.GotoBraceExtendCTRL+SHIFT+]Moves the insertion point to the next brace, extending the selection.
Edit.LineDownExtendSHIFT+DOWN ARROWExtends text selection down one line, starting at the location of the insertion point.
Edit.LineDownExtendColumnSHIFT+ALT+DOWN ARROWMoves the cursor down one line, extending the column selection.
Edit.LineEndExtendSHIFT+ENDSelects text from the insertion point to the end of the current line.
Edit.LineEndExtendColumnSHIFT+ALT+ENDMoves the insertion point to the end of the line, extending the column selection.
Edit.LineStartExtendSHIFT+HOMESelects text from the insertion point to the start of the line.
Edit.LineUpExtendSHIFT+UP ARROWSelects text up line by line starting from the location of the insertion point.
Edit.LineUpExtendColumnSHIFT+ALT+UP ARROWMoves the cursor up one line, extending the column selection.
Edit.PageDownExtendSHIFT+PAGE DOWNExtends selection down one page.
Edit.PageUpExtendSHIFT+PAGE UPExtends selection up one page.
Edit.SelectAllCTRL+ASelects everything in the current document.
Edit.SelectCurrentWordCTRL+WSelects the word containing the insertion point or the word to the right of the insertion point.
Edit.SelectToLastGoBackCTRL+=Selects from the current location in the Editor back to the previous location in the Editor.
Edit.ViewBottomExtendCTRL+SHIFT +PAGE DOWNMoves the cursor to the last line in view, extending the selection.
Edit.ViewTopExtendCTRL+SHIFT +PAGE UPExtends the selection to the top of the current window or document.
Edit.WordNextExtendCTRL+SHIFT+RIGHT ARROWExtends the selection one word to the right.
Edit.WordNextExtendColumnCTRL+SHIFT+ALT+RIGHT ARROWMoves the cursor right one word, extending the column selection.
Edit.WordPreviousExtendCTRL+SHIFT+LEFT ARROWExtends the selection one word to the left.
Edit.WordPreviousExtendColumnCTRL+SHIFT+ALT+LEFT ARROWMoves the cursor left one word, extending the column selection.

Text manipulation shortcut keys

The following shortcut key combinations can be used in text editors to delete, move, or format text within an open document.
CommandShortcut KeysDescription
Edit.BreakLineENTER
SHIFT+ENTER
Inserts a new line.
Edit.CollapsetoDefinitionCTRL+M, CTRL+OAutomatically determines logical boundaries for creating regions in code such as procedures, and then hides them.
Edit.CommentSelectionCTRL+K, CTRL+CMarks the current line of code as a comment, using the correct comment syntax for the programming language.
Edit.DeleteHorizontalWhiteSpaceCTRL+K, CTRL+\Collapses white space in the selection, or deletes white space adjacent to the cursor if there is no selection.
Edit.FormatDocumentCTRL+K, CTRL+DApplies the indenting and space formatting for the language as specified on the Formatting pane of that language in the Text Editor section of the Options dialog box.
Edit.FormatSelectionCTRL+K, CTRL+FCorrectly indents the selected lines of code based on the surrounding lines of code.
Edit.HideSelectionCTRL+M, CTRL+HHides the selected text. A signal icon marks the location of the hidden text in the file.
Edit.InsertTabTABIndents the line of text a specified number of spaces, such as five. Available only in the .NET Framework Designer.
Edit.LineCutCTRL+YCuts all selected lines, or the current line if there is no selection, to the Clipboard.
Edit.LineDeleteCTRL+SHIFT+YDeletes all selected lines, or the current line if there is no selection.
Edit.LineOpenAboveCTRL+ENTERInserts a blank line above the insertion point.
Edit.LineOpenBelowCTRL+SHIFT+ENTERInserts a blank line below the insertion point.
Edit.LineTransposeSHIFT+ALT+TMoves the line containing the insertion point below the next line.
Edit.OvertypeModeINSERTTypes over any characters already in the document instead of inserting the characters. Available only in Text editors.
Edit.StopHidingCurrentCTRL+M, CTRL+URemoves the outlining information for the currently selected region.
Edit.StopOutliningCTRL+M, CTRL+PRemoves all outlining information from the entire document.
Edit.SwapAnchorCTRL+R, CTRL+PSwaps the anchor and end points of the current selection.
Edit.TabLeftSHIFT+TABMoves selected lines left one tab stop. Available only in the .NET Framework Designer.
Edit.ToggleAllOutliningCTRL+M, CTRL+LToggles all previously marked hidden text sections between hidden and display states.
Edit.ToggleBookmarkCTRL+K, CTRL+KSets or removes a bookmark at the current line.
Edit.ToggleOutliningExpansionCTRL+M, CTRL+MToggles the currently selected hidden text section between the hidden and display state.
Edit.ToggleTaskListShortcutCTRL+K, CTRL+HSets or removes a shortcut at the current line.
Edit.UncommentSelectionCTRL+K, CTRL+URemoves the comment syntax from the current line of code.
Edit.ViewWhiteSpaceCTRL+R, CTRL+WShows or hides spaces and tab marks.
Edit.WordTransposeCTRL+SHIFT+TTransposes the words on either side of the insertion point.
View.ShowReferencesALT+F12Performs a case-sensitive, whole word symbol search and displays the results in the Find Symbol Results window.

Window management shortcut keys

The following shortcut key combinations can be used to move, close, or navigate within tool and document windows.
CommandShortcut KeysDescription
View.FullScreenSHIFT+ALT+ENTERToggles Full Screen mode on and off.
Window.ActivateDocumentWindowESCCloses a menu or dialog box, cancels an operation in progress, or places focus in the current document window.
Window.CloseDocumentWindowCTRL+F4Closes the current MDI child window.
Window.CloseToolWindowSHIFT+ESCCloses the current tool window.
Window.MoveToDropDownBarCTRL+F2Moves the cursor to the drop-down bar while the Editor is in Code view.
Window.NextDocumentWindowCTRL+F6Cycles through the MDI child windows one window at a time.
CTRL+TAB
Window.NextPaneCTRL+F12Moves to the next tool window.
Window.NextSplitPaneF6Moves to the next pane of a split pane view of a single document.
Window.NextTabCTRL+PAGE DOWNMoves to the next tab in the document or window.
Window.PreviousDocumentWindowCTRL+SHIFT+F6Moves to the previous document in the Editor or Designer.
CTRL+SHIFT+TAB
Window.PreviousPaneCTRL+SHIFT+F12Moves to the previously selected window.
Window.PreviousSplitPaneSHIFT+F6Moves to the previous pane of a document in split pane view.
Window.PreviousTabCTRL+PAGE UPMoves to the previous tab in the document or window.

Macro shortcut keys

The following shortcut key combinations can be used when working with macros.
CommandShortcut KeysDescription
Tools.MacrosIDEALT+F11Launches the Macros IDE, Visual Studio Macros.
Tools.RecordTemporaryMacroCTRL+SHIFT+RPlaces the environment in Macro record mode.
Tools.RunTemporaryMacroCTRL+SHIFT+PPlays back a recorded macro.

Tool window shortcut keys

The following shortcut key combinations allow you to display specific tool windows.
CommandShortcut KeysDescription
Tools.CommandWindowMarkModeCTRL+SHIFT+MPlaces the Command window in a mode allowing for the selection of text within the window.
Tools.AddRemoveToolboxItemsCTRL+TDisplays the Customize Toolbox dialog box, which allows you to add and remove items on the Toolbox.
View.MacroExplorerALT+F8Displays the Macro Explorer window which lists all available macros in the current solution.
View.ClassViewCTRL+SHIFT+CDisplays the Class View window.
View.CommandWindowCTRL+ALT+ADisplays the Command window, which allows you to type commands that manipulate the IDE.
View.DocumentOutlineCTRL+ALT+TDisplays the Document Outline window to view the flat or hierarchical outline of the current document.
View.FavoritesCTRL+ALT+FDisplays the Favorites window, which lists shortcuts to Web pages.
View.ObjectBrowserF2Displays the Object Browser to view the classes, properties, methods, events, and constants available for packages, and the object libraries and procedures in your project.
View.OutputCTRL+ALT+ODisplays the Output window to view status messages at run time.
View.PropertiesWindowF4Displays the Properties window, which lists the design-time properties and events for the currently selected item.
View.PropertyPagesSHIFT+F4Displays the property pages for the item currently selected.
View.ResourceViewCTRL+SHIFT+EDisplays the Resource View window.
View.ServerExplorerCTRL+ALT+SDisplays the Server Explorer window, which allows you to view and manipulate database servers, event logs, message queues, Web services, and many other operating system services.
View.SolutionExplorerCTRL+RDisplays the Solution Explorer window, which lists the projects and files in the current solution.
View.TaskListCTRL+ALT+KDisplays the Task List window where you customize, categorize, and manage tasks, comments, shortcuts, warnings and error messages.
View.ToolboxCTRL+ALT+XDisplays the Toolbox, which contains controls and other items that can be included or used with your code.