Visual Studio 6.0 Default Shortcut Keys


Command NameShortcut KeysDescription

Global shortcut keys

The following shortcut key combinations can be used in various places within the integrated development environment (IDE).
Command NameShortcut KeysDescription
Edit.CompleteWordCTRL+SPACEFills in the rest of the word you are typing after you have entered enough characters for the Editor to identify the word you want.
Edit.CopyCTRL+CCopies the currently selected item to the system clipboard.
Edit.CutCTRL+X
SHIFT+DELETE
Removes the currently selected item to the system clipboard.
Edit.DeleteDELETEDeletes one character to the right.
Edit.GotoNextLocationF12Moves to the next entry in the Find Results or Task List windows.
Edit.GotoPreviousLocationSHIFT+F12Moves back to the previous entry in the Find Results or Task List windows.
Edit.ListMembersCTRL+JLists members of the current class for statement completion when editing code.
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
CTRL+Y
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+BACKSPACEReverses the last editing action.
CTRL+Z
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.
Help.F1HelpF1Displays a Help topic for the user interface element currently 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.
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 a submenu listing the types of projects you can add to the currently open project. The icon changes to the last project type you added.
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 new or existing projects to your solution.
Project.AddExistingItemCTRL+SHIFT+DDisplays the Add Existing Item dialog box.
Project.AddNewItemCTRL+DDisplays the Add New Item dialog box which allows you to select the items to be added to the current project.

HTML designer shortcut keys

The following shortcut key combinations can be used only while editing in the HTML Designer. Certain key combinations are available only in a specific view of that designer.
Command NameShortcut KeysDescription
Edit.ParameterInfoCTRL+IDisplays a ToolTip that contains information for the current parameter. Only available in HTML view of the HTML Designer.
Edit.ViewBottomCTRL+PAGE UPMoves to the bottom of the current document. Available only in HTML View of the HTML Editor.
Format.BoldCTRL+BToggles the selected text between bold and normal. Available only in Design view of the HTML Designer.
Format.DecreaseIndentCTRL+SHIFT+TRemoves an indent level previously applied with Increase Indent. 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.SnapToGridCTRL+SHIFT+GSpecifies that elements are aligned using an invisible grid. You can set grid spacing on the Design 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.

Debug shortcut keys

The following shortcut key combinations can be used while debugging code.
Command NameShortcut KeysDescription
Debug.BreakAllCTRL+BREAKTemporarily stops execution of all processes in a debugging session. Available only in Run mode.
Debug.BreakpointsCTRL+BDisplays the Breakpoints dialog box, where you can add and modify breakpoints.
Debug.CallStackCTRL+ALT+CDisplays the Call Stack window to present 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.EnableBreakpointsCTRL+F9Sets a breakpoint at the current line.
Debug.ExceptionsCTRL+SHIFT+EDisplays the Exceptions dialog box.
Debug.ImmediateCTRL+ALT+IDisplays the Immediate window where you can evaluate expressions and execute individual commands.
Debug.LocalsCTRL+ALT+LDisplays the Locals window to view the variables and their values for each procedure in the current stack frame.
Debug.ProcessesCTRL+SHIFT+RDisplays the Processes dialog box, which allows you to debug multiple programs at the same time in a single solution.
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.RestartCTRL+SHIFT+F5Terminates a debugging session, rebuilds, and then starts running the application from the beginning. Available in Break and Run modes.
Debug.RunningDocumentsCTRL+ALT+RDisplays the Running Documents window that shows the set of documents that you are in the process of debugging. Available in Run mode.
Debug.RunToCursorCTRL+F10In 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+SHIFT+F10Sets 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.StepIntoF11Executes code one statement at a time, following execution into function calls.
Debug.StepOutSHIFT+F11Executes the remaining lines of a function in which the current execution point lies.
Debug.StepOverF10Executes the next line of code, but does not follow execution through any function calls.
Debug.StopDebuggingSHIFT+F5Stops running the current application in the program. Available in Break and Run modes.
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.Watch1CTRL+ALT+W, 1Displays Watch1 window to view the values of selected variables or watch expressions.
Debug.Watch2CTRL+ALT+W, 2Displays Watch2 window to view the values of selected variables or watch expressions.
Debug.Watch3CTRL+ALT+W, 3Displays Watch3 window to view the values of selected variables or watch expressions.
Debug.Watch4CTRL+ALT+W, 4Displays Watch4 window to view the values of selected variables or watch expressions.

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.
Command NameShortcut 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 box on the Standard toolbar.
Edit.HiddenTextALT+F3, NSelects or clears the Search hidden text option in the Find and Replace dialog boxes.
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, which allows special characters to be used. Available only in the Find, Replace, Find in Files, and Replace in Files dialog boxes as well as the Find/Command Box.
Edit.ReplaceCTRL+HDisplays the Replace dialog box.
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. Available only in the Find, Replace, Find in Files, and Replace in Files dialog boxes as well as the Find/Command Box.

Visual Database Tools shortcut keys

The following shortcut key combinations can be used in the Database Designer or Query Designer.
Command NameShortcut KeysDescription
Database.StepIntoCTRL+ESteps into debug mode for the currently active database object.
Query.RunCTRL+RExecutes the query. Available only in the Database Tools.

Text navigation shortcut keys

The following shortcut key combinations can be used in text editors to move within an open document.
Command NameShortcut KeysDescription
Edit.CharLeftLEFT ARROWMoves the insertion point one character to the left.
Edit.CharRightRIGHT ARROWMoves the insertion point one character to the right.
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.GoToCTRL+GDisplays the Go To Line dialog box.
Edit.GoToBraceCTRL+]Moves the insertion point to the next brace in the document.
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.NextBookmarkCTRL+K, CTRL+NMoves to the next bookmark in the document.
Edit.PageDownPAGE DOWNScrolls the document or window down one page.
Edit.PageUpPAGE UPScrolls the document or window 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.ViewTopCTRL+PAGE UPMoves the cursor to the first line at the top of the current window. Only available in HTML View of the HTML Editor.
Edit.ViewWhiteSpaceCTRL+R, CTRL+WShows or hides spaces and tab marks.
Edit.WordNextCTRL+RIGHT ARROWMoves the insertion point right one word.
Edit.WordPreviousCTRL+LEFT ARROWMoves the insertion point to the beginning of the previous word.
View.ViewCodeF7Displays the selected item in Code view of the Editor.
View.ViewDesignerSHIFT+F7Displays the selected item in Design view of an editor or designer.

Text selection shortcut keys

The following shortcut key combinations can be used in text editors to select text within an open document.
Command NameShortcut KeysDescription
Edit.CharLeftExtendSHIFT+LEFT ARROWSelects text from the insertion point proceeding left.
Edit.CharRightExtendSHIFT+RIGHT ARROWSelects text from the insertion point proceeding left.
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+]Extends the selection to the next brace.
Edit.LineDownExtendSHIFT+DOWN ARROWExtends text selection down one line, starting at the location of the insertion point. Available only in text editors.
Edit.LineEndExtendSHIFT+ENDSelects text from the insertion point to the end of the current line.
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.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.ViewBottomExtendCTRL+SHIFT+PAGE DOWNExtends the selection down one page.
Edit.ViewTopExtendCTRL+SHIFT+PAGE UPExtends the selection to the top of the current window.
Edit.WordNextExtendCTRL+SHIFT+RIGHT ARROWExtends the selection one word to the right.
Edit.WordPreviousExtendCTRL+SHIFT+LEFT ARROWSelects the text and spaces from the insertion point to the beginning of the previous word.

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.
Command NameShortcut KeysDescription
Edit.BreakLineENTERInserts a new line.
SHIFT+ENTER
Edit.CharTransposeCTRL+TTransposes the character or space to the left of the insertion point with the character or space on the right. For example, wor|d would become wodr.
Edit.ClearBookmarksCTRL+K, CTRL+LClears all bookmarks in the current document.
Edit.CompleteWordCTRL+SPACEBARFills in the rest of the word you are typing once you have entered enough characters for the Editor to identify the word you want.
Edit.DeleteBackwardsBACKSPACE
SHIFT+BACKSPACE
Deletes one character to the left.
Edit.FormatSelectionALT+F8Correctly indents the selected lines of code based on the surrounding lines of code.
Edit.InsertTabTABInserts 4 spaces to the left of the insertion point in the document.
Edit.LineCutCTRL+MCuts the line containing the insertion point. Available only in text editors.
Edit.LineDeleteCTRL+SHIFT+MDeletes the line containing the insertion point. Available only in text editors.
Edit.LineOpenAboveCTRL+ENTERInserts a blank line above the insertion point. Available only in text editors.
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.MakeLowercaseCTRL+UChanges the selected text to lowercase characters.
Edit.MakeUppercaseCTRL+SHIFT+UChanges the selected text to uppercase characters.
Edit.OvertypeModeINSERTTypes over any characters already in the document instead of inserting the characters.
Edit.ParameterInfoCTRL+SHIFT+IDisplays a ToolTip that contains information for the current parameter.
Edit.TabifySelectionCTRL+QReplaces spaces with tabs in the selected text.
Edit.TabLeftSHIFT+TABMoves selected lines left one tab stop.
Edit.ToggleBookmarkCTRL+K, CTRL+KSets or removes a bookmark at the current line.
Edit.ToggleTaskListShortcutCTRL+K, CTRL+HSets or removes a shortcut at the current line.
Edit.UntabifySelectionCTRL+SHIFT+QReplaces tabs with spaces in selected text.
Edit.WordDeletetoEndCTRL+DELETEDeletes the word to the right of the insertion point.
Edit.WordDeletetoStartCTRL+BACKSPACEDeletes the word to the left of the insertion point.
Edit.WordTransposeCTRL+SHIFT+TTransposes the word or line immediately right of the insertion point with the next word or line. For example, |End Sub would be changed to read Sub End|.

Window management shortcut keys

The following shortcut key combinations can be used to move, close, or navigate within tool and document windows.
Command NameShortcut KeysDescription
Window.ActivateDocumentWindowESCCloses a menu or dialog box, cancels an operation in progress, or places focus in the current document window.
Window.CloseDocumentWindowCTRL+F4Closes the currently selected document window.
Window.CloseToolWindowSHIFT+ESCCloses tool windows such as Task List and Toolbox.
Window.NextDocumentWindowCTRL+F6Cycles through the MDI child windows one window at a time.
CTRL+TAB
Window.NextPaneALT+F6Moves 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.
CTRL+SHIFT+TAB
Window.PreviousPaneSHIFT+ALT+F6Moves 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.

Tool window shortcut keys

The following shortcut key combinations allow you to display specific tool windows.
Command NameShortcut KeysDescription
View.DocumentOutlineCTRL+ALT+TDisplays the Document Outline window to view the flat or hierarchical outline of the current document.
View.ObjectBrowserCTRL+ALT+B
F2
Displays the Object Browser to view the classes, properties, methods, events, and constants available for packages, and the object libraries and procedures in your project. F2 displays only the Object Browser when you are in an editor.
View.OutputCTRL+ALT+ODisplays the Output window, which displays build and other status information.
View.PropertiesWindowF4Displays the Properties window.
View.PropertyPagesSHIFT+F4Displays the property pages for the item currently selected in the Solution Explorer window.
View.RefreshCTRL+RUpdates the information currently displayed in the web browser window.
View.SolutionExplorerCTRL+ALT+JDisplays the Solution Explorer window.
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.

Control manipulation shortcut keys

The following shortcut key combinations can be used to move, select, and change the size of controls on design surfaces.
Command NameShortcut KeysDescription
Edit.MoveControlDownCTRL+DOWN ARROWMoves the selected control down in increments of 1 on the design surface. Available only in the Dialog editor only.
Edit.MoveControlDownGridDOWN ARROWMoves the selected control down in increments of 8 on the design surface.
Edit.MoveControlLeftCTRL+LEFT ARROWMoves the control to the left in increments of 1 on the design surface.
Edit.MoveControlLeftLEFT ARROWMoves the control to the left in increments of 1 on the design surface. Available only in the Dialog editor.
Edit.MoveControlLeftGridLEFT ARROWMoves the control to the 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.MoveControlRightRIGHT ARROWMoves the control to the right in increments of 1 on the design surface. Available only in the Dialog editor.
Edit.MoveControlRightGridRIGHT ARROWMoves the control to the 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.MoveControlUpUP ARROWMoves the control up in increments of 1 on the design surface. Available only in the Dialog editor.
Edit.MoveControlUpGridUP ARROWMoves the control up in increments of 8 on the design surface.
Edit.SelectNextControlTABSelects the next control on the page.
Edit.SelectPreviousControlSHIFT+TABSelects the previously selected control on the page.
Edit.SizeControlDownCTRL+SHIFT+DOWN ARROWIncreases the height of the control in increments of 1 on the design surface.
Edit.SizeControlDownSHIFT+DOWN ARROWIncreases the height of the control in increments of 1 on the design surface. Available only in the Dialog editor.
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.SizeControlLeftSHIFT+LEFT ARROWReduces the width of the control in increments of 1 on the design surface. Available only in the Dialog editor.
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.SizeControlRightSHIFT+RIGHT ARROWIncreases the width of the control in increments of 1 on the design surface. Available only in the Dialog editor.
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.SizeControlUpSHIFT+UP ARROWDecreases the height of the control in increments of 1 on the design surface. Available only in the Dialog editor.
Edit.SizeControlUpGridSHIFT+UP ARROWDecreases the height of the control in increments of 8 on the design surface.