Поделиться через


Pre-defined Keyboard Shortcuts

Visual Studio has a number of keyboard shortcuts for different Visual Studio commands and windows.

Keyboard shortcuts are assigned according to different keyboard mapping schemes. Your scheme is set the first time you start Visual Studio. After that you can add schemes and assign new keyboard shortcuts on the Tools / Options / Environment / Keyboard options page.

The following list shows the relationship between settings and keyboard mapping schemes.

  1. Default: used with General Development Settings.

  2. Visual Basic 6: used with Visual Basic Development Settings.

  3. Visual C# 2005: used with Visual C# Development Settings.

  4. Visual C++ 6: used with Visual C++ Development settings.

  5. Visual C++ 2: legacy scheme.

  6. Visual Studio 6: legacy scheme

Table of Contents

Designers and Editors, Shared Shortcuts

Designers

Editors

Data

File and Project Operations

Window Management

Tool Windows

Debugging

Testing

Integrated Help

Designers and Editors, Shared Shortcuts

These shortcuts work in both designers and editors.

Command

Description

General Development, Web

Visual C#, Visual Basic, Visual Basic 6

Visual Studio 6

Visual C# 2005

Edit.Copy

Copies the selected item to the Clipboard.

CTRL+C or CTRL+INSERT

CTRL+C or CTRL+INSERT

CTRL+C or CTRL+INSERT

CTRL+C or CTRL+INSERT

Edit.Cut

Deletes the selected item from the file and copies it to the Clipboard.

CTRL+X or SHIFT+DELETE

CTRL+X or SHIFT+DELETE

CTRL+X or SHIFT+DELETE

CTRL+X or SHIFT+DELETE

Edit.CycleClipboardRing

Pastes an item from the Clipboard ring to the cursor location in the file. To paste the next item in the Clipboard ring instead, press the shortcut again.

CTRL+SHIFT+V or CTRL+SHIFT+INSERT

CTRL+SHIFT+V or CTRL+SHIFT+INSERT

CTRL+SHIFT+V or CTRL+SHIFT+INSERT

CTRL+SHIFT+V or CTRL+SHIFT+INSERT

Edit.Delete

Deletes one character to the right of the cursor.

DELETE

CTRL+DELETE

DELETE

DELETE

Edit.Find

Displays the Quick tab of the Find and Replace dialog box.

CTRL+F

CTRL+F

CTRL+F

CTRL+F

Edit.FindAllReferences

Displays the list of references for the selected symbol.

SHIFT+F12

SHIFT+F12

 

CTRL+K, R or SHIFT+F12

Edit.FindinFiles

Displays the In Files tab of the Find and Replace dialog box.

CTRL+SHIFT+F

CTRL+SHIFT+F

 

CTRL+SHIFT+F

Edit.FindNext

Finds the next occurrence of the search text.

F3

F3

F3

F3

Edit.FindNextSelected

Finds the next occurrence of the currently selected text, or the word at the cursor.

CTRL+F3

CTRL+F3

CTRL+F3

CTRL+F3

Edit.FindPrevious

Finds the previous occurrence of the search text.

SHIFT+F3

SHIFT+F3

SHIFT+F3

SHIFT+F3

Edit.FindPreviousSelected

Finds the previous occurrence of the currently selected text, or the word at the cursor.

CTRL+SHIFT+F3

CTRL+SHIFT+F3

CTRL+SHIFT+F3

CTRL+SHIFT+F3

Edit.FindSymbol

Displays the Find Symbol pane of the Find and Replace dialog box.

ALT+F12

ALT+F12

ALT+F12

ALT+F12

Edit.GoToFindCombo

Puts the cursor in the Find/Command box on the Standard toolbar.

CTRL+D

CTRL+/ (Visual C# only)

CTRL+SHIFT+F

CTRL+/

Edit.IncrementalSearch

Activates incremental search. If incremental search is on, but no input is passed, the previous search query is used. If search input has been found, the next invocation searches for the next occurrence of the input text.

CTRL+I

ALT+I

 

CTRL+I

Edit.Paste

Inserts the Clipboard contents at the cursor.

CTRL+V or SHIFT+INSERT

CTRL+V or SHIFT+INSERT

CTRL+V or SHIFT+INSERT

CTRL+V or SHIFT+INSERT

Edit.QuickFindSymbol

Searches for the selected object or member and displays the matches in the Find Symbol Results window.

SHIFT+ALT+F12

SHIFT+ALT+F12

SHIFT+ALT+F12

SHIFT+ALT+F12

Edit.NavigateTo

Displays the Navigate To dialog box.

CTRL+,

CTRL+,

CTRL+,

CTRL+,

Edit.Redo

Repeats the most recent action.

CTRL+Y or SHIFT+ALT+BACKSPACE or CTRL+SHIFT+Z

SHIFT+ALT+BACKSPACE or CTRL+SHIFT+Z

CTRL+Y or SHIFT+ALT+BACKSPACE or CTRL+SHIFT+Z

CTRL+Y or SHIFT+ALT+BACKSPACE or CTRL+SHIFT+Z

Edit.Replace

Displays the replace options on the Quick tab of the Find and Replace dialog box.

CTRL+H

CTRL+H

CTRL+H

CTRL+H

Edit.ReplaceinFiles

Displays the replace options on the In Files tab of the Find and Replace dialog box.

CTRL+SHIFT+H

CTRL+SHIFT+H

CTRL+SHIFT+H

CTRL+SHIFT+H

Edit.SelectAll

Selects everything in the current document.

CTRL+A

CTRL+A

CTRL+A

CTRL+A

Edit.StopSearch

Stops the current Find in Files operation.

ALT+F3, S

ALT+F3, S

ALT+F3, S

ALT+F3, S

Edit.Undo

Reverses the last editing action.

CTRL+Z or ALT+BACKSPACE

CTRL+Z or ALT+BACKSPACE

CTRL+Z or ALT+BACKSPACE

CTRL+Z or ALT+BACKSPACE

View.ViewCode

For the selected item, opens the corresponding file and puts the cursor in the correct location.

 

F7

F7

F7

View.ViewDesigner

Switches to Design view for the current document. Available only in Source view.

 

SHIFT+F7

SHIFT+F7

SHIFT+F7

Designers

The shortcuts in this section work in designers. Editor shortcuts may also work in designers that include text, for example, the Report designer.

Control Manipulation

These shortcuts work in designers, for moving, selecting, and changing the size of controls.

Command

Description

All Keyboard Schemes

Edit.MoveControlDown

Moves the selected control down in increments of 1 pixel on the design surface.

DOWN ARROW

Edit.MoveControlDownGrid

Moves the selected control down to the next preset grid position on the design surface.

CTRL+DOWN ARROW

Edit.MoveControlLeft

Moves the control to the left in increments of 1 pixel on the design surface.

LEFT ARROW

Edit.MoveControlLeftGrid

Moves the control to the left to the next preset grid position on the design surface.

CTRL+LEFT ARROW

Edit.MoveControlRight

Moves the control to the right in increments of 1 pixel on the design surface.

RIGHT ARROW

Edit.MoveControlRightGrid

Moves the control to the right to the next preset grid position on the design surface.

CTRL+RIGHT ARROW

Edit.MoveControlUp

Moves the control up in increments of 1 pixel on the design surface.

UP ARROW

Edit.MoveControlUpGrid

Moves the control up in increments of 8 pixels on the design surface.

CTRL+UP ARROW

Edit.SelectNextControl

Moves to the next control on the page based on the TabIndex property of the control.

TAB

Edit.SelectPreviousControl

Moves back to the previously selected control on the page.

SHIFT+TAB

Edit.ShowTileGrid

Displays the grid on the design surface.

ENTER

Edit.SizeControlDown

Expands the control downward in increments of 1 pixel on the design surface.

SHIFT+DOWN ARROW

Edit.SizeControlDownGrid

Expands the control downward to the next preset grid position on the design surface.

CTRL+SHIFT+DOWN ARROW

Edit.SizeControlLeft

Expands the control to the left in increments of 1 pixel on the design surface.

SHIFT+LEFT ARROW

Edit.SizeControlLeftGrid

Expands the control to the left to the next preset grid position on the design surface.

SHIFT+LEFT ARROW

Edit.SizeControlRight

Expands the control to the right in increments of 1 pixel on the design surface.

SHIFT+RIGHT ARROW

Edit.SizeControlRightGrid

Expands the control to the right to the next preset grid position on the design surface.

SHIFT+RIGHT ARROW

Edit.SizeControlUp

Expands the control upward in increments of 1 pixel on the design surface.

SHIFT+UP ARROW

Edit.SizeControlUpGrid

Expands the control upward to the next preset grid position on the design surface.

SHIFT+UP ARROW

View.ShowSmartTag

Displays the available options on the smart tag menu.

SHIFT+ALT+F10

HTML Designer

These shortcuts only work in the HTML Designer, and certain shortcuts are available only in a specific view. Text Navigation shortcuts, Text Selection shortcuts, and Text Manipulation shortcuts, which are listed later in this topic, may also be used in the HTML Designer.

Command

Description

Visual Studio 6

All Other Schemes

Format.Bold

Toggles the selected text between bold and plain. Available only in Design view.

CTRL+B

CTRL+B

Format.ConverttoHyperlink

When text is selected, displays the Hyperlink dialog box. Available only in Design view.

CTRL+L

CTRL+L

Format.InsertBookmark

Displays the Bookmark dialog box. Available only in Design view.

CTRL+SHIFT+L

CTRL+SHIFT+L

Format.Italic

Toggles the selected text between italic and plain. Available only in Design view.

CTRL+I

CTRL+I

Format.Underline

Toggles the selected text between underlined and plain. Available only in Design view.

CTRL+U

CTRL+U

Project.AddContentPage

Adds a new *.aspx file to the Web site and opens the file in the HTML Designer. Available only in Design view.

CTRL+M, CTRL+C

CTRL+M, CTRL+C

Table.ColumntotheLeft

Adds one column to the left of the current column in the table. Available only in Design view.

CTRL+ALT+LEFT ARROW

CTRL+ALT+LEFT ARROW

Table.ColumntotheRight

Adds one column to the right of the current column in the table. Available only in Design view.

CTRL+ALT+RIGHT ARROW

CTRL+ALT+RIGHT ARROW

Table.RowAbove

Adds one row above the current row in the table. Available only in Design view.

CTRL+ALT+UP ARROW

CTRL+ALT+UP ARROW

Table.RowBelow

Adds one row below the current row in the table. Available only in Design view.

CTRL+ALT+DOWN ARROW

CTRL+ALT+DOWN ARROW

View.ASP.NETNonvisualControls

Toggles the visibility of non-visual controls on the design surface.

CTRL+SHIFT+N

CTRL+SHIFT+N

View.EditMaster

Opens the *.master file in Source view. Available only in Design view.

CTRL+M

CTRL+M

View.NextView

Switches among Design view, Source view, and Server Code view for the current document. Available in all views.

CTRL+PAGE DOWN

CTRL+PAGE DOWN

View.ShowSmartTag

Displays the available options on the smart tag menu.

SHIFT+ALT+F10 or CTRL+J

SHIFT+ALT+F10

View.ViewMarkup

Switches to Source view for the current document. Available only in Design view.

SHIFT+F7

SHIFT+F7

Window.PreviousTab

Switches among Design view, Source view, and Server Code view for the current document. Available in all views.

CTRL+PAGE UP

CTRL+PAGE UP

Settings Designer

These shortcuts are specific to the Settings Designer.

Command

Description

All Keyboard Schemes

Edit.EditCell

Displays the selected cell in Edit mode.

F2

Edit.RemoveRow

Removes the selected row.

CTRL+DELETE

Edit.SelectionCancel

Cancels the current selection.

ESC

View.ViewCode

Switches to Code view.

F7

XML Schema Designer

Command

Description

All Keyboard Schemes

OtherContextMenus.GraphView.RemovefromWorkspace

Removes the selected item from the workspace.

DELETE

XsdDesigner.ShowContentModelView

Displays the current XML schema in Content Model View.

CTRL+2

XsdDesigner.ShowGraphView

Displays the current XML schema in Graph View.

CTRL+3

XsdDesigner.ShowStartView

Displays the current XML schema in Start View.

CTRL+1

Editors

The shortcuts in this section work in text editors.

Text Navigation

These shortcuts are for moving around in an open document.

Command

Description

General Development, Web

Visual C#

Visual Basic, Visual Basic 6

Visual Studio 6

Visual C# 2005

Edit.CharLeft

Moves the cursor one character to the left.

LEFT ARROW

LEFT ARROW

LEFT ARROW

LEFT ARROW

LEFT ARROW

Edit.CharRight

Moves the cursor one character to the right.

RIGHT ARROW

RIGHT ARROW

RIGHT ARROW

RIGHT ARROW

RIGHT ARROW

Edit.DocumentEnd

Moves the cursor to the last line of the document.

CTRL+END

END

END

CTRL+END

CTRL+END

Edit.DocumentStart

Moves the cursor to the first line of the document.

CTRL+HOME

HOME

HOME

CTRL+HOME

CTRL+HOME

Edit.GoTo

Displays the Go To Line dialog box.

CTRL+G

 

 

CTRL+G

CTRL+G

Edit.GoToBrace

Moves the pointer location to the matching brace in the source file.

CTRL+]

 

 

CTRL+]

CTRL+]

Edit.GoToDeclaration

Displays the definition of the selected symbol in the code.

CTRL+F12

CTRL+F12

CTRL+F12

CTRL+F12

CTRL+F12

Edit.GoToDefinition

Navigates to the declaration for the selected symbol in code.

F12

F12 or SHIFT+F2

F12 or SHIFT+F2

 

F12

Edit.GoToNextLocation

Moves the cursor to the next item, such as a task in the Task List window or a search match in the Find Results window. Subsequent invocations move to the next item in the list.

F8

 

 

F8 or F12

F8

Edit.GoToPrevLocation

Moves the cursor back to the previous item.

SHIFT+F8

 

 

SHIFT+F8 or SHIFT+F12

SHIFT+F8

Edit.GoToReference

Searches for references to the object or member selected in the file and displays the matches in the Find Symbol Results window.

 

SHIFT+F12

SHIFT+F12

 

 

Edit.IncrementalSearch

Starts 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.

CTRL+I

ALT+I

ALT+I

 

CTRL+I

Edit.LineDown

Moves the cursor down one line.

DOWN ARROW

DOWN ARROW

DOWN ARROW

DOWN ARROW

DOWN ARROW

Edit.LineEnd

Moves the cursor to the end of the current line.

END

END

END

END

END

Edit.LineStart

Moves the cursor to the start of the line.

HOME

HOME

HOME

HOME

HOME

Edit.LineUp

Moves the cursor up one line.

UP ARROW

UP ARROW

UP ARROW

UP ARROW

UP ARROW

Edit.NextBookmark

Moves to the next bookmark in the document.

CTRL+K, CTRL+N

CTRL+K, N

CTRL+K, N

CTRL+K, CTRL+N

CTRL+B, N

Edit.NextBookmarkInFolder

If the current bookmark is in a folder, moves to the next bookmark in that folder. Bookmarks outside the folder are skipped.

If the current bookmark is not in a folder, moves to the next bookmark at the same level.

If the Bookmark window contains folders, bookmarks in folders are skipped.

CTRL+SHIFT+K, CTRL+SHIFT+N

CTRL+SHIFT+K, CTRL+SHIFT+N

CTRL+SHIFT+K, CTRL+SHIFT+N

CTRL+SHIFT+K, CTRL+SHIFT+N

 

Edit.NextHighlightedReference

Moves the cursor to the next instance of the current type or member.

CTRL+SHIFT+DOWN ARROW

CTRL+SHIFT+DOWN ARROW

CTRL+SHIFT+DOWN ARROW

CTRL+SHIFT+DOWN ARROW

CTRL+SHIFT+DOWN ARROW

Edit.NextMethod

Moves the cursor to the next method or type in the current code file.

 

CTRL+PAGE DOWN or CTRL+DOWN ARROW

CTRL+PAGE DOWN or CTRL+DOWN ARROW

 

 

Edit.PageDown

Scrolls down one screen in the editor window.

PAGE DOWN

PAGE DOWN

PAGE DOWN

PAGE DOWN

PAGE DOWN

Edit.PageUp

Scrolls up one screen in the editor window.

PAGE UP

PAGE UP

PAGE UP

PAGE UP

PAGE UP

Edit.PreviousBookmark

Moves the cursor to the location of the previous bookmark.

CTRL+K, CTRL+P

CTRL+K, P

CTRL+K, P

CTRL+K, CTRL+P

CTRL+B, P

Edit.PreviousBookmarkInFolder

If the current bookmark is in a folder, moves to the previous bookmark in that folder. Bookmarks outside the folder are skipped.

If the current bookmark is not in a folder, moves to the previous bookmark at the same level.

If the Bookmark window contains folders, bookmarks in folders are skipped.

CTRL+SHIFT+K, CTRL+SHIFT+P

CTRL+SHIFT+K, CTRL+SHIFT+P

CTRL+SHIFT+K, CTRL+SHIFT+P

CTRL+SHIFT+K, CTRL+SHIFT+P

 

Edit.PreviousHighlightedReference

Moves the cursor to the previous instance of the current type or member.

CTRL+SHIFT+UP ARROW

CTRL+SHIFT+UP ARROW

CTRL+SHIFT+UP ARROW

CTRL+SHIFT+UP ARROW

CTRL+SHIFT+UP ARROW

Edit.PreviousMethod

Moves the cursor to the previous method or type in the current code file.

 

CTRL+PAGE UP or CTRL+UP ARROW

CTRL+PAGE UP or CTRL+UP ARROW

 

 

Edit.QuickInfo

Displays the complete declaration for the specified identifier in your code in a Quick Info tool tip. For more information, see Quick Info.

CTRL+K, CTRL+I

CTRL+I

CTRL+I

CTRL+I

CTRL+K, CTRL+I

Edit.ReverseIncrementalSearch

Changes the direction of incremental search to start at the bottom of the file and progress toward the top.

CTRL+SHIFT+I

SHIFT+ALT+I

SHIFT+ALT+I

 

CTRL+SHIFT+I

Edit.ScrollLineDown

Scrolls text down one line. Available in text editors only.

CTRL+DOWN ARROW

CTRL+DOWN ARROW

CTRL+DOWN ARROW

CTRL+DOWN ARROW

CTRL+DOWN ARROW

Edit.ScrollLineUp

Scrolls text up one line. Available in text editors only.

CTRL+UP ARROW

CTRL+UP ARROW

CTRL+UP ARROW

CTRL+UP ARROW

CTRL+UP ARROW

Edit.ViewBottom

Moves to the last visible line of the active window.

CTRL+PAGE DOWN

 

 

CTRL+PAGE DOWN

CTRL+PAGE DOWN

Edit.ViewTop

Moves to the first visible line of the active window.

CTRL+PAGE UP

 

 

CTRL+PAGE UP

CTRL+PAGE UP

Edit.WordNext

Moves the cursor to the right one word.

CTRL+RIGHT ARROW

CTRL+RIGHT ARROW

CTRL+RIGHT ARROW

CTRL+RIGHT ARROW

CTRL+RIGHT ARROW

Edit.WordPrevious

Moves the cursor to the left one word.

CTRL+LEFT ARROW

CTRL+LEFT ARROW

CTRL+LEFT ARROW

CTRL+LEFT ARROW

CTRL+LEFT ARROW

View.BrowseNext

Moves to the next definition, declaration, or reference of an item. Available in Object Browser and Class View.

CTRL+SHIFT+1

CTRL+SHIFT+1

 

CTRL+SHIFT+1

CTRL+SHIFT+1

View.BrowsePrevious

Moves to the previous definition, declaration, or reference of an item. Available in Object Browser and Class View.

CTRL+SHIFT+2

CTRL+SHIFT+2

 

CTRL+SHIFT+2

CTRL+SHIFT+2

View.ForwardBrowseContext

Moves to the next item called in code in the current file. Uses the Go To Definition navigation stack.

CTRL+SHIFT+7

CTRL+SHIFT+7

CTRL+SHIFT+7

CTRL+SHIFT+7

CTRL+SHIFT+7

View.NavigateBackward

Moves to the previously browsed line of code.

CTRL+-

CTRL+-

CTRL+SHIFT+2 or CTRL+-

CTRL+-

CTRL+-

View.NavigateForward

Moves to the next browsed line of code.

CTRL+SHIFT+-

CTRL+SHIFT+-

CTRL+SHIFT+-

CTRL+SHIFT+-

CTRL+SHIFT+-

View.NextError

Moves to the next error entry in the Error List window, which automatically scrolls to the affected section of text in the editor.

CTRL+SHIFT+F12

CTRL+SHIFT+F12

 

CTRL+SHIFT+F12

CTRL+SHIFT+F12

View.NextTask

Moves to the next task or comment in the Task List window.

 

CTRL+SHIFT+F12

CTRL+SHIFT+F12

 

 

View.PopBrowseContext

Moves to the previous item called in code in the current file. Uses the Go To Definition navigation stack.

CTRL+SHIFT+8

CTRL+SHIFT+8

 

CTRL+SHIFT+8

CTRL+SHIFT+8

Window.NextSplitPane

When editing code or text in a split window, moves the cursor to the next pane of the split.

F6

F6

F6

F6

 

Text Selection

These shortcuts are for selecting text in an open document.

Command

Description

General Development, Web, Visual Studio 6

Visual C#, Visual Basic, Visual Basic 6

Visual C# 2005

Edit.CharLeftExtend

Moves the cursor one character to the left and extends the current selection.

SHIFT+LEFT ARROW

SHIFT+LEFT ARROW

SHIFT+LEFT ARROW

Edit.CharLeftExtendColumn

Moves the cursor to the left one character, extending the column selection.

SHIFT+ALT+LEFT ARROW

SHIFT+ALT+LEFT ARROW

SHIFT+ALT+LEFT ARROW

Edit.CharRightExtend

Moves the cursor one character to the right and extends the current selection.

SHIFT+RIGHT ARROW

SHIFT+RIGHT ARROW

SHIFT+RIGHT ARROW

Edit.CharRightExtendColumn

Moves the cursor to the right one character, extending the column selection

SHIFT+ALT+RIGHT ARROW

SHIFT+ALT+RIGHT ARROW

SHIFT+ALT+RIGHT ARROW

Edit.DocumentEndExtend

Selects the text from the cursor to the last line of the document.

CTRL+SHIFT+END

SHIFT+END

CTRL+SHIFT+END

Edit.DocumentStartExtend

Selects the text from the cursor to the first line of the document.

CTRL+SHIFT+HOME

SHIFT+HOME

CTRL+SHIFT+HOME

Edit.GotoBraceExtend

Moves the cursor to the next brace, extending the selection.

CTRL+SHIFT+]

 

CTRL+SHIFT+]

Edit.LineDownExtend

Extends text selection down one line, starting at the location of the cursor.

SHIFT+DOWN ARROW

SHIFT+UP ARROW

SHIFT+DOWN ARROW

Edit.LineDownExtendColumn

Moves the pointer down one line, extending the column selection.

SHIFT+ALT+DOWN ARROW

SHIFT+ALT+DOWN ARROW

SHIFT+ALT+DOWN ARROW

Edit.LineEndExtend

Selects text from the cursor to the end of the current line.

SHIFT+END

SHIFT+END

SHIFT+END

Edit.LineEndExtendColumn

Moves the cursor to the end of the line, extending the column selection.

SHIFT+ALT+END

SHIFT+ALT+END

SHIFT+ALT+END

Edit.LineStartExtend

Selects text from the cursor to the start of the line.

SHIFT+HOME

SHIFT+HOME

SHIFT+HOME

Edit.LineStartExtendColumn

Moves the cursor to the start of the line, extending the column selection.

SHIFT+ALT+HOME

SHIFT+ALT+HOME

SHIFT+ALT+HOME

Edit.LineUpExtend

Selects text up, line by line, starting from the location of the cursor.

SHIFT+UP ARROW

SHIFT+DOWN ARROW

SHIFT+UP ARROW

Edit.LineUpExtendColumn

Moves the cursor up one line, extending the column selection.

SHIFT+ALT+UP ARROW

SHIFT+ALT+UP ARROW

SHIFT+ALT+UP ARROW

Edit.PageDownExtend

Extends selection down one page.

SHIFT+PAGE DOWN

SHIFT+PAGE DOWN

SHIFT+PAGE DOWN

Edit.PageUpExtend

Extends selection up one page.

SHIFT+PAGE UP

SHIFT+PAGE UP

SHIFT+PAGE UP

Edit.SelectCurrentWord

Selects the word that contains the cursor or the word to the right of the cursor.

CTRL+W

CTRL+SHIFT+W

CTRL+SHIFT+W

Edit.SelectionCancel

Cancels the current selection.

ESC

ESC

ESC

Edit.SelectToLastGoBack

Selects everything from the current location of the cursor to the Navigate Backward (CTRL+MINUS SIGN) location in the editor.

CTRL+=

CTRL+=

CTRL+=

Edit.ViewBottomExtend

Moves the cursor and extends the selection to the last line in view.

CTRL+SHIFT+PAGE DOWN

 

CTRL+SHIFT+PAGE DOWN

Edit.ViewTopExtend

Extends the selection to the top of the active window.

CTRL+SHIFT+PAGE UP

 

CTRL+SHIFT+PAGE UP

Edit.WordNextExtend

Extends the selection one word to the right.

CTRL+SHIFT+RIGHT ARROW

CTRL+SHIFT+RIGHT ARROW

CTRL+SHIFT+RIGHT ARROW

Edit.WordNextExtendColumn

Moves the cursor to the right one word, extending the column selection.

CTRL+SHIFT+ALT+RIGHT ARROW

CTRL+SHIFT+ALT+RIGHT ARROW

CTRL+SHIFT+ALT+RIGHT ARROW

Edit.WordPreviousExtend

Extends the selection one word to the left.

CTRL+SHIFT+LEFT ARROW

CTRL+SHIFT+LEFT ARROW

CTRL+SHIFT+LEFT ARROW

Edit.WordPreviousExtendColumn

Moves the cursor to the left one word, extending the column selection.

CTRL+SHIFT+ALT+LEFT ARROW

CTRL+SHIFT+ALT+LEFT ARROW

CTRL+SHIFT+ALT+LEFT ARROW

Text Viewing

These shortcuts are for changing how text is displayed without changing the text itself, for example, by hiding a selected area or by outlining methods.

Command

Description

General Development, Web

Visual C#, Visual Basic, Visual Basic 6

Visual Studio 6

Visual C# 2005

Edit.ClearBookmarks

Removes all bookmarks in all open documents.

CTRL+K, CTRL+L

CTRL+K, CTRL+L

CTRL+K, CTRL+L

CTRL+B, C

Edit.CollapseAllOutlining

Collapses all regions on the page to show just the outermost groups in the hierarchy; typically the using/imports section and the namespace definition.

CTRL+M, CTRL+A

CTRL+M, CTRL+A

 

CTRL+M, CTRL+A

Edit.CollapseCurrentRegion

Collapses the region that contains the cursor to show just the top line of the region, followed by an ellipsis. Regions are indicated by triangles on the left edge of the document window.

CTRL+M, CTRL+S

CTRL+M, CTRL+S

 

CTRL+M, CTRL+S

Edit.CollapseTag

Hides the selected HTML tag and displays an ellipsis (. . .) instead. You can view the complete tag as a tooltip by putting the mouse pointer over the ellipsis.

CTRL+M, CTRL+T

CTRL+M, CTRL+T

 

CTRL+M, CTRL+T

Edit.CollapsetoDefinitions

Collapses existing regions to provide a high-level view of the types and members in the source file.

CTRL+M, CTRL+O

CTRL+M, CTRL+O

 

CTRL+M, CTRL+O

Edit.DecreaseFilterLevel

Switches an open IntelliSense list from the All tab to the Common tab. Available only in Visual Basic.

ALT+,

ALT+,

ALT+,

ALT+,

Edit.EnableBookmark

Enables bookmark usage in current document.

 

 

 

CTRL+B, E

Edit.ExpandAllOutlining

Expands all collapsed regions on the page.

CTRL+M, CTRL+X

CTRL+M, CTRL+X

 

CTRL+M, CTRL+X

Edit.ExpandCurrentRegion

Expands the current region. Put the cursor on a collapsed region to use this command.

CTRL+M, CTRL+E

CTRL+M, CTRL+E

 

CTRL+M, CTRL+E

Edit.HideSelection

Hides the selected text. A signal icon marks the location of the hidden text in the file.

CTRL+M, CTRL+H

CTRL+M, CTRL+H

 

CTRL+M, CTRL+H

Edit.IncreaseFilterLevel

Switches an open IntelliSense list from the Common tab to the All tab. Available only in Visual Basic.

ALT+.

ALT+.

ALT+.

ALT+.

Edit.StopHidingCurrent

Removes the outlining information for the currently selected region.

CTRL+M, CTRL+U

CTRL+M, CTRL+U

 

CTRL+M, CTRL+U

Edit.StopOutlining

Removes all outlining information from the whole document.

CTRL+M, CTRL+P

CTRL+M, CTRL+P

 

CTRL+M, P

Edit.ToggleAllOutlining

Toggles all previously collapsed outlining regions between collapsed and expanded states.

CTRL+M, CTRL+L

CTRL+M, CTRL+L

 

CTRL+M, L

Edit.ToggleBookmark

Sets or removes a bookmark at the current line.

CTRL+K, CTRL+K

CTRL+K, CTRL+K or CTRL+K, CTRL+T

CTRL+K, CTRL+K

CTRL+K, CTRL+K or CTRL+T, B

Edit.ToggleConsumeFirstCompletionMode

Toggles between the default IntelliSense auto-complete behavior, which inserts a selection as soon as other possible selections are eliminated, and manual mode, where the user manually inserts the selection.

CTRL+ALT+SPACEBAR

CTRL+ALT+SPACEBAR

CTRL+ALT+SPACEBAR

CTRL+ALT+SPACEBAR

Edit.ToggleOutliningExpansion

Toggles the currently selected collapsed region between the collapsed and expanded state.

CTRL+M, CTRL+M

CTRL+M, CTRL+M

 

CTRL+M, CTRL+M or CTRL+E, T

Edit.ToggleTaskListShortcut

Sets or removes a shortcut at the current line.

CTRL+K, CTRL+H

CTRL+K, CTRL+H

CTRL+K, CTRL+H

CTRL+K, CTRL+H

Edit.ToggleWordWrap

Enables or disables wordwrap in an editor.

CTRL+E, CTRL+W

 

CTRL+E, CTRL+W

CTRL+E, W

Edit.ViewWhiteSpace

Shows or hides spaces and tab marks.

CTRL+R, CTRL+W

 

CTRL+R, CTRL+W

CTRL+R, CTRL+W or CTRL+E, S

Text Manipulation

These shortcuts are for deleting, moving, or formatting text in an open document.

Command

Description

General Development, Web

Visual C#, Visual Basic, Visual Basic 6

Visual Studio 6

Visual C# 2005

Edit.BreakLine

Inserts a new line.

Note   In some editors, such as Design view of the HTML Designer, ENTER behaves differently depending on the context. For more information, see the documentation for the editor you are using.

ENTER

ENTER

ENTER

ENTER

Edit.CharTranspose

Swaps the characters on either side of the cursor. For example, AC|BD becomes AB|CD. Available only in text editors.

CTRL+T

 

CTRL+T

CTRL+T

Edit.CommentSelection

Applies comment characters for the current language to the current selection.

CTRL+K, CTRL+C

CTRL+K, CTRL+C

CTRL+K, CTRL+C

CTRL+K, CTRL+C or CTRL+E, C

Edit.CompleteWord

Completes the current word in the completion list.

ALT+RIGHT ARROW or CTRL+SPACEBAR

ALT+RIGHT ARROW or CTRL+SPACEBAR

ALT+RIGHT ARROW or CTRL+SPACEBAR

ALT+RIGHT ARROW or CTRL+SPACEBAR or CTRL+K, W

Edit.CopyParameterTip

Copies the parameter information displayed by IntelliSense to the Clipboard

CTRL+SHIFT+ALT+C

CTRL+SHIFT+ALT+C

CTRL+SHIFT+ALT+C

CTRL+SHIFT+ALT+C

Edit.DeleteBackwards

Deletes one character to the left of the cursor.

BACKSPACE

BACKSPACE

BACKSPACE

BACKSPACE

Edit.DeleteHorizontalWhiteSpace

Collapses white space in the selection, or Deletes white space adjacent to the cursor if there is no selection.

CTRL+K, CTRL+\

CTRL+K, CTRL+\

CTRL+K, CTRL+\

CTRL+K, CTRL+\

Edit.FormatDocument

Formats the current document according to the indentation and code formatting settings specified on the Formatting pane in the Options dialog box, for the current language.

CTRL+K, CTRL+D

CTRL+K, CTRL+D

CTRL+K, CTRL+D

CTRL+K, CTRL+D or CTRL+E, D

Edit.FormatSelection

Formats the current selection according to the indentation and code formatting settings specified on the Formatting pane in the Options dialog box, for the current language.

CTRL+K, CTRL+F

CTRL+K, CTRL+F

ALT+F8 or CTRL+K, CTRL+F

CTRL+E, Fn or CTRL+K, CTRL+F

Edit.Generate

Opens a Smart Tag that shows available Generate From Usage options for the selected identifier.

CTRL+.

CTRL+.

CTRL+.

CTRL+.

Edit.GenerateMethodStub

Creates a new method declaration for the method call that the cursor is resting in.

CTRL+K, CTRL+M

CTRL+K, CTRL+M

CTRL+K, CTRL+M

CTRL+K, CTRL+M

Edit.InsertSnippet

Displays the Code Snippet Picker. The selected code snippet will be inserted at the cursor position.

CTRL+K, CTRL+X

CTRL+K, CTRL+X

CTRL+K, CTRL+X

CTRL+K, CTRL+X

Edit.InsertTab

Indents the line of text a specified number of spaces.

TAB

TAB

TAB

TAB

Edit.LineCut

Cuts all selected lines, or the current line if nothing has been selected, to the Clipboard.

CTRL+L

CTRL+Y

CTRL+L or CTRL+M

CTRL+L

Edit.LineDelete

Deletes all selected lines, or the current line if no selection has been made.

CTRL+SHIFT+L

CTRL+SHIFT+L

CTRL+SHIFT+L or CTRL+SHIFT+M

CTRL+SHIFT+L

Edit.LineOpenAbove

Inserts a blank line above the cursor.

CTRL+ENTER

CTRL+ENTER

CTRL+ENTER

CTRL+ENTER

Edit.LineOpenBelow

Inserts a blank line below the cursor.

CTRL+SHIFT+ENTER

CTRL+SHIFT+ENTER

CTRL+SHIFT+ENTER

CTRL+SHIFT+ENTER

Edit.LineTranspose

Moves the line that contains the cursor below the next line.

SHIFT+ALT+T

SHIFT+ALT+T

SHIFT+ALT+T

SHIFT+ALT+T

Edit.ListMembers

Invokes the IntelliSense completion list.

CTRL+J

CTRL+J

CTRL+J

CTRL+J or CTRL+K, CTRL+L

Edit.MakeLowercase

Changes the selected text to lowercase characters.

CTRL+U

CTRL+U

CTRL+U

CTRL+U

Edit.MakeUppercase

Changes the selected text to uppercase characters.

CTRL+SHIFT+U

CTRL+SHIFT+U

CTRL+SHIFT+U

CTRL+SHIFT+U

Edit.OvertypeMode

Toggles between insert and overtype insertion modes. Available only when you are working in text editors.

INSERT

INSERT

INSERT

INSERT

Edit.ParameterInfo

Displays the name, number, and type of parameters required for the specified method.

CTRL+SHIFT+SPACEBAR

CTRL+SHIFT+SPACEBAR or CTRL+SHIFT+I

CTRL+SHIFT+SPACEBAR or CTRL+SHIFT+I

CTRL+SHIFT+SPACEBAR or CTRL+K, P

Edit.PasteParameterTip

Pastes the previously copied parameter information from IntelliSense to the location indicated by the cursor.

CTRL+SHIFT+ALT+P

 

CTRL+SHIFT+ALT+P

CTRL+SHIFT+ALT+P

Edit.SurroundWith

Displays the Code Snippet Picker. The selected code snippet will be wrapped around the selected text. For more information, see Code Snippet Picker.

CTRL+K, CTRL+S

CTRL+K, CTRL+S

CTRL+K, CTRL+S

CTRL+K, S

Edit.SwapAnchor

Swaps the anchor and end points of the current selection.

CTRL+K, CTRL+A

CTRL+K, CTRL+A

CTRL+K, CTRL+A

CTRL+K, CTRL+A or CTRL+E, A

Edit.TabifySelectedLines

Replaces spaces with tabs in the selected text.

 

 

CTRL+Q

 

Edit.TabLeft

Moves selected lines to the left one tab stop.

SHIFT+TAB

SHIFT+TAB

SHIFT+TAB

SHIFT+TAB

Edit.UncommentSelection

Removes the comment syntax from the current line of code.

CTRL+K, CTRL+U

CTRL+K, CTRL+U

CTRL+K, CTRL+U

CTRL+K, CTRL+U or CTRL+E, U

Edit.UntabifySelectedLines

Replaces tabs with spaces in selected text.

 

 

CTRL+SHIFT+Q

 

Edit.WordDeleteToEnd

Deletes the word to the right of the cursor.

CTRL+DELETE

CTRL+DELETE

CTRL+DELETE

CTRL+DELETE

Edit.WordDeleteToStart

Deletes the word to the left of the cursor.

CTRL+BACKSPACE

CTRL+BACKSPACE

CTRL+BACKSPACE

CTRL+BACKSPACE

Edit.WordTranspose

Transposes the words on either side of the cursor. For example, |End Sub would be changed to read Sub End|.

CTRL+SHIFT+T

CTRL+SHIFT+T

CTRL+SHIFT+T

CTRL+SHIFT+T

Refactor.Rename

Displays the Rename dialog box, which allows for renaming all references for an identifier

 

 

 

F2

View.AutoCloseTagOverride

Temporarily overrides the default close tag behavior for the current tag. For more information, see Tag Specific Options. Available only in HTML Editor Source view.

CTRL+SHIFT+.

CTRL+SHIFT+.

CTRL+SHIFT+.

CTRL+SHIFT+.

Data

These shortcuts are for working with data in the IDE.

Command

Description

All Keyboard Schemes

Data.Column

Adds a new data column to the bottom of the data set. Available only in the Dataset Editor.

CTRL+L

Data.Execute

Runs the currently active database object.

CTRL+ALT+F5

Data.InsertColumn

Inserts a new data column above the selected column in the data set. Available only in the Dataset Editor.

INSERT

Data.ShowDataSources

Displays the Data Sources window.

SHIFT+ALT+D

Data.StepInto

Steps into debug mode for the currently active database object.

ALT+F5

QueryDesigner.CancelRetrievingData

Cancels or stops the currently running query. Available only in the Query and View Designer.

CTRL+T

QueryDesigner.Criteria

Displays the Criteria pane of the Query and View Designer. Available only in the Query and View Designer.

CTRL+2

QueryDesigner.Diagram

Displays the Diagram pane of the Query and View Designer. Available only in the Query and View Designer.

CTRL+1

QueryDesigner.ExecuteSQL

Executes the query. Available only in the Query and View Designer.

CTRL+R

QueryDesigner.GoToRow

When in the Results pane, moves focus to the tool strip docked at the bottom of the designer. Available only in the Query and View Designer.

CTRL+G

QueryDesigner.JoinMode

Enables JOIN mode. Available only in the Query and View Designer.

CTRL+SHIFT+J

QueryDesigner.Results

Displays the Results pane of the Query and View Designer. Available only in the Query and View Designer.

CTRL+4

QueryDesigner.SQL

Displays the SQL pane of the Query and View Designer. Available only in the Query and View Designer.

CTRL+3

File and Project Operations

These shortcuts are for file and project operations, and can be used anywhere in the IDE.

Command

Description

General Development, Web

Visual C#, Visual Basic, Visual Basic 6

Visual Studio 6

Visual C# 2005

Build.BuildSelection

Builds the selected project and its dependencies.

 

 

 

F6

Build.BuildSolution

Builds all the projects in the solution

 

CTRL+SHIFT+B

CTRL+SHIFT+B

CTRL+SHIFT+B or F6

Build.Cancel

Stops the current build.

CTRL+BREAK

 

 

CTRL+BREAK

Build.Compile

Creates an object file that contains machine code, linker directives, sections, external references, and function/data names for the selected file.

CTRL+F7

 

 

CTRL+F7

Build.RebuildSolution

Rebuilds the solution

 

 

 

 

File.NewFile

Displays the New File dialog box so that you can add a new file to the current project.

CTRL+N

 

CTRL+SHIFT+N

CTRL+N

File.NewProject

Displays the New Project dialog box.

CTRL+SHIFT+N

CTRL+N

CTRL+N

CTRL+SHIFT+N

File.NewWebSite

Displays the New Web Site dialog box.

SHIFT+ALT+N

SHIFT+ALT+N

SHIFT+ALT+N

SHIFT+ALT+N

File.OpenFile

Displays the Open File dialog box.

CTRL+O

 

CTRL+SHIFT+O

CTRL+O

File.OpenProject

Displays the Open Project dialog box so that you can add existing projects to your solution.

CTRL+SHIFT+O

CTRL+O or CTRL+SHIFT+O

CTRL+O

CTRL+SHIFT+O

File.OpenWebSite

Displays the Open Web Site dialog box.

SHIFT+ALT+O

SHIFT+ALT+O

SHIFT+ALT+O

SHIFT+ALT+O

File.Print

Displays the Print dialog box so that you can select printer settings.

CTRL+P

CTRL+P

CTRL+P

CTRL+P

File.Rename

Lets you modify the name of the item selected in Solution Explorer.

 

 

 

 

File.SaveAll

Saves all documents in the current solution and all files in the external files project.

CTRL+SHIFT+S

CTRL+SHIFT+S

CTRL+SHIFT+S

CTRL+SHIFT+S

File.SaveSelectedItems

Saves the selected items in the current project.

CTRL+S

CTRL+S

CTRL+S

CTRL+S

File.SaveSelectedItemsAs

Displays the Save File As dialog box when items are selected in the editor.

 

 

 

 

File.ViewinBrowser

Displays in a Web browser the file that is selected in Solution Explorer or the file that has focus in the editor.

CTRL+SHIFT+W

CTRL+SHIFT+W

CTRL+SHIFT+W

 

Project.AddClass

Displays the Add New Item dialog box and selects the Class template by default.

 

 

 

SHIFT+ALT+C

Project.AddExistingItem

Displays the Add Existing Item dialog box, which lets you add an existing file to the current project.

SHIFT+ALT+A

CTRL+D or SHIFT+ALT+A

SHIFT+ALT+A or CTRL+SHIFT+D

SHIFT+ALT+A

Project.AddNewItem

Displays the Add New Item dialog box, which lets you add a new file to the current project.

CTRL+SHIFT+A

CTRL+SHIFT+A

CTRL+SHIFT+A or CTRL+D

CTRL+SHIFT+A

Project.AddResource

Add a resource to current project.

 

 

 

 

Project.Override

Lets you override base class methods in a derived class.

CTRL+ALT+INSERT

 

CTRL+ALT+INSERT

CTRL+ALT+INSERT

Project.Properties

Displays the Project Properties dialog box for the current project in the editing frame.

 

 

 

 

Window Management

These shortcuts are for moving, closing, or navigating in tool windows and document windows.

Command

Description

General Development, Web, Visual C#, Visual Studio 6

Visual Basic, Visual Basic 6

Visual C# 2005

View.FullScreen

Toggles Full Screen mode on and off.

SHIFT+ALT+ENTER

SHIFT+ALT+ENTER

SHIFT+ALT+ENTER

Window.ActivateDocumentWindow

Closes a menu or dialog box, cancels an operation in progress, or puts focus in the current document window.

ESC

ESC

ESC

Window.CloseDocumentWindow

Closes the current tab.

CTRL+F4

CTRL+F4

CTRL+F4

Window.CloseToolWindow

Closes the current tool window.

SHIFT+ESC

SHIFT+ESC

SHIFT+ESC

Window.Dock

Returns a floating tool or document window to its most recent docked location in the IDE.

 

 

 

Window.MovetoNavigationBar

Moves the cursor to the drop-down bar located at the top of the code editor when the editor is in Code view or Server Code view.

CTRL+F2

CTRL+F2

CTRL+F2

Window.NextDocumentWindow

Cycles through the MDI child windows one window at a time.

CTRL+F6

CTRL+F6

CTRL+F6

Window.NextDocumentWindowNav

Displays the IDE Navigator, with the first document window selected.

CTRL+TAB

CTRL+TAB

CTRL+TAB

Window.NextPane

Moves to the next pane of the current tool or document window.

ALT+F6

F6

ALT+F6

Window.NextTab

Moves to the next tab in the document or window.

CTRL+PAGE DOWN

CTRL+PAGE DOWN

CTRL+PAGE DOWN

Window.NextToolWindow

Moves to the next tool window.

 

ALT+F7

 

Window.NextToolWindowNav

Displays the IDE Navigator, with the first tool window selected.

ALT+F7

 

ALT+F7

Window.PreviousDocumentWindow

Moves to the previous document in the editor or designer.

CTRL+SHIFT+F6

CTRL+SHIFT+F6

CTRL+SHIFT+F6

Window.PreviousDocumentWindowNav

Displays the IDE Navigator, with the previous document window selected.

CTRL+SHIFT+TAB

CTRL+SHIFT+TAB

CTRL+SHIFT+TAB

Window.PreviousPane

Moves to the previously selected window.

SHIFT+ALT+F6

SHIFT+ALT+F6

SHIFT+ALT+F6

Window.PreviousSplitPane

Moves to the previous pane of a document in split-pane view.

SHIFT+F6

SHIFT+F6

 

Window.PreviousTab

Moves to the previous tab in the document or window.

CTRL+PAGE UP

CTRL+PAGE UP

CTRL+PAGE UP

Window.ShowEzMDIFileList

Displays a pop-up listing all open documents only.

CTRL+ALT+DOWN ARROW

CTRL+ALT+DOWN ARROW

CTRL+ALT+DOWN ARROW

Window.PreviousToolWindowNav

Displays the IDE Navigator with the previous tool window selected.

SHIFT+ALT+7

 

SHIFT+ALT+7

Tool Windows

These shortcuts are for opening tool windows anywhere in the IDE.

Command

Description

General Development, Web, Visual Studio 6

Visual C#

Visual Basic, Visual Basic 6

Visual C# 2005

Tools.CodeSnippetsManager

Displays theCode Snippets Manager , which lets you search for and insert code snippets in files. For more information, see Code Snippets Manager.

CTRL+K, CTRL+B

CTRL+K, CTRL+B

CTRL+K, CTRL+B

CTRL+K, CTRL+B

Tools.GoToCommandLine

Puts the pointer in the Find/Command box on the Standard toolbar.

CTRL+/

 

 

 

Tools.MacrosIDE

Starts the Macros IDE, for writing Visual Studio Macros.

ALT+F11

ALT+F11

 

ALT+F11

View.BookmarkWindow

Displays the Bookmark window.

CTRL+K, CTRL+W

CTRL+K, CTRL+W or CTRL+W, K or CTRL+W, CTRL+B

CTRL+K, CTRL+W or CTRL+W, K

CTRL+W, CTRL+B

View.CallHierarchy

Displays the Call Hierarchy window

CTRL+ALT+K (General and Web)

CTRL+ALT+K

 

CTRL+ALT+K

View.ClassView

Displays the Class View window.

CTRL+SHIFT+C

CTRL+SHIFT+C or CTRL+W, CTRL+C

CTRL+SHIFT+C

CTRL+SHIFT+C or CTRL+W, CTRL+C

View.ClassViewGoToSearchCombo

Brings focus to the Class View Search box.

CTRL+K, CTRL+V

CTRL+K, CTRL+V

CTRL+K, CTRL+V

CTRL+K, CTRL+V

View.CodeDefinitionWindow

Displays the Code Definition window.

CTRL+\, D

CTRL+\, D or CTRL+W, D

CTRL+\, D

CTRL+\, D or CTRL+W, D

View.CommandWindow

Displays the Command window, where commands can be invoked to make changes to the IDE.

CTRL+ALT+A

CTRL+ALT+A or CTRL+W, A

CTRL+ALT+A

CTRL+ALT+A or CTRL+W, A

View.DocumentOutline

Displays the Document Outline window to view the flat or hierarchical outline of the current document.

CTRL+ALT+T

CTRL+ALT+T or CTRL+W, U

CTRL+ALT+T

CTRL+ALT+T or CTRL+W, U

View.EditLabel

Lets you change the name of the selected item in Solution Explorer.

F2

F2

 

F2

View.ErrorList

Displays the Error List window.

CTRL+\, E

CTRL+\, E or CTRL+W, E

CTRL+\, E or CTRL+W, E

CTRL+\, E or CTRL+W, E

View.F#Interactive

Displays the F# Interactive window.

CTRL+ALT+F

CTRL+ALT+F

CTRL+ALT+F

CTRL+ALT+F

View.FindSymbolResults

Displays the Find Symbol Results window.

CTRL+ALT+F12

CTRL+ALT+F12 or CTRL+W, Q

CTRL+ALT+F12

CTRL+ALT+F12 or CTRL+W, Q

View.MacroExplorer

Displays the Macro Explorer window, which lists all available macros in the current solution.

ALT+F8

ALT+F8

ALT+F8

ALT+F8

View.ObjectBrowser

Displays the Object Browser.

CTRL+ALT+J (General and Web) or CTRL+ALT+B (Visual Studio 6) or F2 (Visual Studio 6)

CTRL+W, J or F2

CTRL+W, J or F2

CTRL+ALT+J

View.Output

Displays the Output window to view status messages at run time.

CTRL+ALT+O

CTRL+ALT+O or CTRL+W, O

CTRL+ALT+O

CTRL+ALT+O or CTRL+W, O

View.PendingCheckins

Displays the Pending Checkins window.

 

CTRL+W, G

 

CTRL+W, G

View.PopBrowseContext

Returns to the location that preceded the last browse operation.

CTRL+SHIFT+8

CTRL+SHIFT+8

 

CTRL+SHIFT+8

View.PropertiesWindow

Displays the Properties window, which lists the design-time properties and events for the currently selected item.

F4

 

F4

F4 or CTRL+W, P

View.PropertyPages

Displays the property pages for the currently selected item.

SHIFT+F4

SHIFT+F4

SHIFT+F4

SHIFT+F4

View.ResourceView

Displays the Resource View window.

CTRL+SHIFT+E

CTRL+SHIFT+E or CTRL+W, R

CTRL+SHIFT+E

CTRL+SHIFT+E or CTRL+W, R

View.ServerExplorer

Displays Server Explorer, which lets you view and change database servers, event logs, message queues, Web services, and other operating system services.

CTRL+ALT+S

CTRL+ALT+S or CTRL+W, L

CTRL+ALT+S

CTRL+ALT+S or CTRL+W, L

View.SolutionExplorer

Displays Solution Explorer, which lists the projects and files in the current solution.

CTRL+ALT+L

CTRL+ALT+L or CTRL+W, S or CTRL+R

CTRL+ALT+L or CTRL+R

CTRL+ALT+L or CTRL+W, S

View.TaskList

Displays the Task List window, which displays custom tasks, comments, shortcuts, warnings, and error messages.

CTRL+\, T or CTRL+ALT+K (Visual Studio 6)

CTRL+\, T or CTRL+W, T or CTRL+ALT+K

CTRL+\, T or CTRL+ALT+K

CTRL+\, T or CTRL+W, T

View.ToggleDesigner

Displays the selected item in Code view of the editor.

F7 (General and Web)

 

 

 

View.Toolbox

Displays the Toolbox, which contains controls and other items that can be included or used with your code.

CTRL+ALT+X

CTRL+ALT+X or CTRL+W, X

CTRL+ALT+X

CTRL+ALT+X or CTRL+W, X

View.WebBrowser

Displays the Web Browser window, which lets you view pages on the Internet.

CTRL+ALT+R

CTRL+ALT+R or CTRL+W, W

CTRL+ALT+R

CTRL+ALT+R or CTRL+W, W

Window.PreviousToolWindow

Brings focus to the previous toolwindow.

 

 

SHIFT+ALT+F7

 

Window.PreviousToolWindowNav

Displays the IDE Navigator, with the previous tool window selected.

SHIFT+ALT+F7

SHIFT+ALT+F7

 

SHIFT+ALT+F7

Class Diagram

These shortcuts are only for working with class diagrams.

Command

Description

Visual C# (Default)

Visual Basic, Visual Basic 6

All Other Schemes

ClassDiagram.Collapse

Collapses expanded nodes in the Class Details window or collapses the selected shape compartment in the diagram.

MINUS SIGN (on the numeric keypad)

MINUS SIGN (on the numeric keypad)

MINUS SIGN (on the numeric keypad)

ClassDiagram.Expand

Expands collapsed nodes in the Class Details window or expands the selected shape compartment in the diagram.

PLUS SIGN (on the numeric keypad)

PLUS SIGN (on the numeric keypad)

PLUS SIGN (on the numeric keypad)

Edit.Delete

Removes the selected item from the class diagram.

DELETE

DELETE

CTRL+DELETE

Edit.ExpandCollapseBaseTypeList

Expands or collapses base types in the selected shape compartment.

For example, if Interface1 inherits from Interface2, Interface3, and Interface4, the parental interfaces are listed on the shape compartment for Interface1. By using this command, you can collapse the list of inherited interfaces to show only summary information about the number of base interfaces inherited by Interface1.

SHIFT+ALT+B

SHIFT+ALT+B

SHIFT+ALT+B

Edit.NavigateToLollipop

Selects the Interface Lollipop for a shape compartment. The lollipop appears on shapes that implement one or more interfaces.

SHIFT+ALT+L

SHIFT+ALT+L

SHIFT+ALT+L

Edit.RemoveFromDiagram

Removes the selected shape compartment from the diagram.

DELETE

DELETE

DELETE

View.ViewCode

For the selected item, opens the corresponding file and puts the cursor in the correct location.

ENTER

or

F7

ENTER

ENTER

Bookmark Window

These shortcuts are for working with bookmarks, either in the Bookmarks window or in the editor. For more information, see Bookmark Window.

Command

Description

General Development, Web, Visual Studio 6

Visual C#

Visual Basic, Visual Basic 6

Visual C# 2005

Edit.ClearBookmarks

Removes all bookmarks in all open documents.

CTRL+K, CTRL+L

CTRL+K, CTRL+L

CTRL+K, CTRL+L

CTRL+K, CTRL+L

Edit.EnableBookmark

Enables bookmark usage in current document.

 

CTRL+B, E

 

CTRL+B, E

Edit.NextBookmark

Moves to the next bookmark in the document.

CTRL+K, CTRL+N

CTRL+K, N or CTRL+B, N

CTRL+K, N

CTRL+K, N or CTRL+B, N

Edit.NextBookmarkInFolder

If the current bookmark is in a folder, moves to the next bookmark in that folder. Bookmarks outside the folder are skipped.

If the current bookmark is not in a folder, moves to the next bookmark at the same level.

If the Bookmark window contains folders, bookmarks in folders are skipped.

CTRL+SHIFT+K, CTRL+SHIFT+N

 

CTRL+SHIFT+K, CTRL+SHIFT+N

 

Edit.ToggleBoomark

Toggles a bookmark on the current line in the document.

CTRL+K, CTRL+K

CTRL+K, CTRL+K or CTRL+T

CTRL+K, CTRL+K or CTRL+T

CTRL+K, CTRL+K or CTRL+T

View.BookmarkWindow

Displays the Bookmark window.

CTRL+K, CTRL+W

CTRL+K, CTRL+W or CTRL+W, B

CTRL+K, CTRL+W or CTRL+W, K

CTRL+K, CTRL+W or CTRL+W, B

Edit.PreviousBookmark

Moves the cursor to the location of the previous bookmark.

CTRL+K, CTRL+P

CTRL+K, P

CTRL+K, P

CTRL+B, P or CTRL+K, P

Edit.PreviousBookmarkInFolder

If the current bookmark is in a folder, moves to the previous bookmark in that folder. Bookmarks outside the folder are skipped.

If the current bookmark is not in a folder, moves to the previous bookmark at the same level.

If the Bookmark window contains folders, bookmarks in folders are skipped.

CTRL+SHIFT+K, CTRL+SHIFT+P

CTRL+SHIFT+K, CTRL+SHIFT+P

CTRL+SHIFT+K, CTRL+SHIFT+P

 

Object Browser

These shortcuts work in the Object Browser.

Command

Description

General Development, Web, Visual C# 2005

Visual C#, Visual Basic, Visual Basic 6

Visual Studio 6

Edit.FindSymbol

Displays the Find Symbol pane of the Find and Replace dialog box.

ALT+F12

ALT+F12

ALT+F12

Edit.GoToDeclaration

Displays the definition of the selected symbol in the code.

CTRL+F12

CTRL+F12

CTRL+F12

Edit.GoToDefinition

Navigates to the declaration for the selected symbol in code.

F12

F12 or SHIFT+F2

 

Edit.GoToReference

Searches for references to the object or member selected in the file and displays the matches in the Find Symbol Results window.

 

SHIFT+F12

 

Edit.QuickFindSymbol

Searches for the object or member selected in the file and displays the matches in the Find Symbol Results window.

SHIFT+ALT+F12

SHIFT+ALT+F12

SHIFT+ALT+F12

View.ObjectBrowserBack

Moves back to the previously selected object in the selection history of the Object Browser.

 

ALT+-

 

View.ObjectBrowserForward

Moves forward to the next object in the selection history of the Object Browser.

 

SHIFT+ALT+-

 

View.ObjectBrowserGoToSearchCombo

Places focus in the Object Browser Search field.

SHIFT+ALT+F10 or CTRL+.

SHIFT+ALT+F10 or CTRL+.

SHIFT+ALT+F10 or CTRL+.

Macro

These shortcuts work with macros.

Command

Description

General Development, Web, Visual C#, Visual C# 2005

Visual Basic, Visual Basic 6

Visual Studio 6

View.MacroExplorer

Displays Macro Explorer, which lists the available macros in the current solution.

ALT+F8

ALT+F8

ALT+F8

Tools.MacrosIDE

Starts the Macros IDE, for writing Visual Studio Macros.

ALT+F11

 

ALT+F11

Tools.RecordTemporaryMacro

Puts the Visual Studio IDE in macro record mode.

CTRL+SHIFT+R

 

 

Tools.RunTemporaryMacro

Plays back a recorded macro.

CTRL+SHIFT+P

 

CTRL+SHIFT+P

Image Editor

These shortcuts work for the Image editor.

Command

Definition

All Keyboard Schemes

Image.AirbrushTool

Draws by using an airbrush with the selected size and color.

CTRL+A

Image.BrushTool

Draws by using a brush with the selected shape, size, and color.

CTRL+B

Image.CopyandOutlineSelection

Creates a copy of the current selection and outlines it. If the background color is in the current selection, it will be excluded if you have transparent selected. For more information, see Choosing a Transparent or Opaque Background.

CTRL+SHIFT+U

Image.DrawOpaque

Makes the current selection either opaque or transparent. For more information, see Choosing a Transparent or Opaque Background.

CTRL+J

Image.EllipseTool

Draws an ellipse that has the selected line width and color.

ALT+P

Image.EraseTool

Erases a part of the image (with the current background color).

CTRL+SHIFT+I

Image.FilledEllipseTool

Draws a filled ellipse.

CTRL+SHIFT+ALT+P

Image.FilledRectangleTool

Draws a filled rectangle.

CTRL+SHIFT+ALT+R

Image.FilledRoundedRectangleTool

Draws a filled round rectangle.

CTRL+SHIFT+ALT+W

Image.FillTool

Fills an area.

CTRL+F

Image.FlipHorizontal

Flips the image or selection horizontally.

CTRL+H

Image.FlipVertical

Flips the image or selection vertically.

SHIFT+ALT+H

Image.LargerBrush

Increases the brush size by one pixel in each direction. To decrease the brush size, see Image.SmallerBrush in this table.

CTRL+=

Image.LineTool

Draws a straight line with the selected shape, size, and color.

CTRL+L

Image.MagnificationTool

Switches to the Magnify tool, which lets you to magnify specific sections of your image.

CTRL+M

Image.Magnify

Toggles between the current magnification and 1:1 magnification.

CTRL+SHIFT+M

Image.NewImageType

Opens the New <Device> Image Type dialog box with which you can create an image for a different image type. For more information, see New <Device> Image Type Dialog Box.

INSERT

Image.NextColor

Changes the drawing foreground color to the next palette color.

CTRL+RIGHT ARROW or CTRL+]

Image.NextRightColor

Changes the drawing background color to the next palette color.

CTRL+SHIFT+RIGHT ARROW or CTRL+SHIFT+]

Image.OutlinedEllipseTool

Draws a filled ellipse with an outline.

SHIFT+ALT+P

Image.OutlinedRectangleTool

Draws a filled rectangle with an outline

SHIFT+ALT+R

Image.OutlinedRoundedRectangleTool

Draws a filled round rectangle with an outline.

SHIFT+ALT+W

Image.PencilTool

Draws using a single-pixel pencil.

CTRL+I

Image.PreviousColor

Changes the drawing foreground color to the previous palette color.

CTRL+LEFT ARROW or CTRL+[

Image.PreviousRightColor

Changes the drawing background color to the previous palette color.

CTRL+SHIFT+LEFT ARROW or CTRL+SHIFT+[

Image.RectangleSelectionTool

Selects a rectangular part of the image to move, copy, or edit.

SHIFT+ALT+S

Image.RectangleTool

Draws a rectangle that has the selected line width and color.

ALT+R

Image.Rotate90Degrees

Rotates the image or selection 90 degrees.

CTRL+SHIFT+H

Image.RoundedRectangleTool

Draws a round rectangle that has the selected line width and color.

ALT+W

Image.ShowGrid

Toggles the pixel grid (selects or clears the Pixel grid option in the Grid Settings dialog box. For more information, see Grid Settings Dialog Box.

CTRL+ALT+S

Image.ShowTileGrid

Toggles the tile grid (selects or clears the Tile grid option in the Grid Settings dialog box. For more information, see Grid Settings Dialog Box.

CTRL+SHIFT+ALT+S

Image.SmallBrush

Reduces the brush size to one pixel. (See also Image.LargerBrush and Image.SmallerBrush in this table.)

CTRL+.

Image.SmallerBrush

Reduces the brush size by one pixel in each direction. To expand the brush size again, see Image.LargerBrush in this table.

CTRL+-

Image.TextTool

Opens the Text Tool dialog box. For more information, see Text Tool Dialog Box.

CTRL+T

Image.UseSelectionasBrush

Draws using the current selection as a brush.

CTRL+U

Image.ZoomIn

Increases the magnification for the current view.

CTRL+UP ARROW or CTRL+SHIFT+.

Image.ZoomOut

Reduces the magnification of the current view.

CTRL+DOWN ARROW or CTRL+SHIFT+,

Managed Resources Editor

These shortcuts are only for making changes in the Managed Resources editor.

Command

Description

All Keyboard Schemes

Edit.EditCell

Switches to edit mode in the selected cell in Other view and Strings view.

F2

Edit.Remove

Removes the selected file in Files view, Images view, Icons view, and Audio view.

DELETE

Edit.RemoveRow

Deletes the selected row in Other view and Strings view.

CTRL+DELETE

Edit.SelectionCancel

Cancels the current selection

ESC

Resources.Audio

Switches the Managed Resources editor to Audio view, which displays sound files in the current project. Formats of displayed files include .wav, .wma, and .mp3.

CTRL+4

Resources.Files

Switches the Managed Resources editor to Files view, which displays files that are not found in the other views.

CTRL+5

Resources.Icons

Switches the Managed Resources editor to Icons view, which displays icon (*.ico) files in the current project.

CTRL+3

Resources.Images

Switches the Managed Resources editor to Images view, which displays image files in the current project. Formats of displayed files include .bmp, .jpg, and .gif.

CTRL+2

Resources.Other

Switches the Managed Resources editor to Other view, which displays a settings grid for adding other types that support string serialization.

CTRL+6

Resources.Strings

Switches the Managed Resources editor to Strings view, which displays strings in a grid that has columns for the Name, Value, and Comment of the string resource.

CTRL+1

Refactoring (Visual C# Only)

These shortcuts are for performing refactoring operations. For more information, see Refactoring (C#). These shortcuts are not available in any of the Visual Basic keyboard schemes.

Command

Description

All Keyboard Schemes

Refactor.EncapsulateField

Displays the Encapsulate Field dialog box, which lets you create a property from an existing field and updates all references to use the new property.

CTRL+R, E

Refactor.ExtractInterface

Displays the Extract Interface dialog box, which lets you create a new interface that has members derived from an existing class, struct, or interface.

CTRL+R, I

Refactor.ExtractMethod

Displays the Extract Method dialog box, which lets you create a method from the selected code.

CTRL+R, M

Refactor.PromoteLocalVariabletoParameter

Moves a variable from a local usage to a method, indexer, or constructor parameter and updates the call sites correctly.

CTRL+R, P

Refactor.RemoveParameters

Displays the Remove Parameters dialog box, which removes parameters from methods, indexers, or delegates by changing the declaration at any locations where the member is called. For more information, see Remove Parameters Refactoring (C#).

CTRL+R, V

Refactor.Rename

Displays the Rename dialog box, which lets you rename all references for an identifier.

CTRL+R, R

Refactor.ReorderParameters

Displays the Reorder Parameters dialog box, which lets you change the order of the parameters for methods, indexers, and delegates.

CTRL+R, O

Debugging

These shortcuts are for debugging code.

Command

Description

General Development, Web

Visual C#

Visual Basic, Visual Basic 6

Visual C# 2005

Visual Studio 6

Debug.ApplyCodeChanges

Starts a build that lets you use the Edit and Continue feature to apply changes to code that is being debugged.

ALT+F10

 

 

ALT+F10

ALT+F10

Debug.AttachtoProcess

Displays the Attach to Process dialog box.

 

 

 

 

CTRL+SHIFT+R

Debug.Autos

Displays the Auto window, which displays variables used in the current line of code and the previous line of code.

CTRL+ALT+V, A

CTRL+ALT+V, A

CTRL+ALT+V, A

CTRL+ALT+V, A or CTRL+D, A

CTRL+ALT+V, A

Debug.BreakAll

Temporarily stops execution of all processes in a debugging session. Available only in Run mode.

CTRL+ALT+BREAK

CTRL+BREAK

CTRL+BREAK

CTRL+ALT+BREAK

CTRL+ALT+BREAK

Debug.BreakatFunction

Displays the New Breakpoint dialog box.

CTRL+B

CTRL+B

CTRL+B

CTRL+B or CTRL+D, N

 

Debug.Breakpoints

Displays the Breakpoints dialog box, where you can add, remove, and modify breakpoints.

CTRL+ALT+B

CTRL+ALT+B

CTRL+ALT+B

CTRL+B or CTRL+D, CTRL+B

CTRL+ALT+B

Debug.CallStack

Displays the Call Stack window, which displays a list of all active methods or stack frames for the current thread of execution.

CTRL+ALT+C

CTRL+L or CTRL+ALT+C

CTRL+L or CTRL+ALT+C

CTRL+ALT+C or CTRL+D, C

CTRL+ALT+C

Debug.DeleteAllBreakpoints

Clears all the breakpoints in the project.

CTRL+SHIFT+F9

CTRL+SHIFT+F9

CTRL+SHIFT+F9

CTRL+SHIFT+F9

CTRL+SHIFT+F9

Debug.Disassembly

Displays the Disassembly window.

CTRL+ALT+D

 

 

CTRL+ALT+D

CTRL+ALT+D

Debug.EnableBreakpoint

Toggles the breakpoint between disabled and enabled.

CTRL+F9

 

 

CTRL+F9

CTRL+F9

Debug.Exceptions

Displays the Exceptions dialog box.

CTRL+ALT+E

CTRL+ALT+E

CTRL+ALT+E

CTRL+ALT+E or CTRL+D, E

CTRL+ALT+E

Debug.Immediate

Displays the Immediate window, where expressions can be evaluated.

CTRL+ALT+I

CTRL+G or CTRL+ALT+I

CTRL+G or CTRL+ALT+I

CTRL+ALT+I or CTRL+D, I

CTRL+ALT+I

Debug.Locals

Displays the Locals window, which displays the local variables and their values for each method in the current stack frame.

CTRL+ALT+V, L

CTRL+ALT+V, L

CTRL+ALT+V, L

CTRL+ALT+V, L or CTRL+D, L

CTRL+ALT+V, L or CTRL+ALT+L

Debug.LocationToolbar.ProcessCombo

Selects the Process box on the Debug Location toolbar, if it is open.

CTRL+5

CTRL+5

CTRL+5

CTRL+5

CTRL+5

Debug.LocationToolbar.StackFrameCombo

Selects the Stack Frame box on the Debug Location toolbar, if it is open.

CTRL+7

CTRL+7

CTRL+7

CTRL+7

CTRL+7

Debug.LocationToolbar.ThreadCombo

Selects the Thread box on the Debug Location toolbar, if it is open.

CTRL+6

CTRL+6

CTRL+6

CTRL+6

CTRL+6

Debug.LocationToolbar.ToggleCurrentThreadFlaggedState

Flags or un-flags the current thread in the Thread box on the Debug Location toolbar.

CTRL+8

CTRL+8

CTRL+8

CTRL+8

CTRL+8

Debug.LocationToolbar.ToggleFlaggedThreads

Toggles whether to show all threads or only flagged threads in the Thread box on the Debug Location toolbar.

CTRL+9

CTRL+9

CTRL+9

CTRL+9

CTRL+9

Debug.Memory1

Displays the Memory 1 window to view large buffers, strings, and other data that do not display clearly in the Watch or Variables windows.

CTRL+ALT+M, 1

CTRL+ALT+M, 1

CTRL+ALT+M, 1

CTRL+ALT+M, 1 or CTRL+D, Y

CTRL+ALT+M, 1

Debug.Memory2

Displays the Memory 2 window to view large buffers, strings, and other data that do not display clearly in the Watch or Variables windows.

CTRL+ALT+M, 2

CTRL+ALT+M, 2

CTRL+ALT+M, 2

CTRL+ALT+M, 2

CTRL+ALT+M, 2

Debug.Memory3

Displays the Memory 3 window to view large buffers, strings, and other data that do not display clearly in the Watch or Variables windows.

CTRL+ALT+M, 3

CTRL+ALT+M, 3

CTRL+ALT+M, 3

CTRL+ALT+M, 3

CTRL+ALT+M, 3

Debug.Memory4

Displays the Memory 4 window to view large buffers, strings, and other data that do not display clearly in the Watch or Variables windows.

CTRL+ALT+M, 4 or CTRL+ALT+U

CTRL+ALT+M, 4 or CTRL+ALT+U

CTRL+ALT+M, 4 or CTRL+ALT+U

CTRL+ALT+M, 4 or CTRL+ALT+U or CTRL+D, M

CTRL+ALT+M, 4 or CTRL+ALT+U

Debug.Modules

Displays the Modules window, which lets you view the .dll or .exe files that are used by the program. In multiprocess debugging, you can right-click and then click Show Modules for all Programs.

CTRL+ALT+U

CTRL+ALT+U

CTRL+ALT+U

CTRL+ALT+U

CTRL+ALT+U

Debug.ParallelStacks

Opens the Parallel Stacks window.

CTRL+SHIFT+D, S

CTRL+SHIFT+D, S

CTRL+SHIFT+D, S or CTRL+ALT+D, S

CTRL+SHIFT+D, S

CTRL+SHIFT+ALT+D, S

Debug.ParallelTasks

Opens the Parallel Tasks window.

CTRL+SHIFT+D, K

CTRL+SHIFT+D, K

CTRL+SHIFT+D, K or CTRL+ALT+D, K

CTRL+SHIFT+D, K

CTRL+SHIFT+ALT+D, K

Debug.Processes

Displays the Processes window. Available in Run mode.

CTRL+SHIFT+ALT+P (Web only) or CTRL+ALT+Z

CTRL+ALT+Z

CTRL+ALT+Z

CTRL+ALT+Z or CTRL+D, P

CTRL+ALT+Z

Debug.QuickWatch

Displays the QuickWatch dialog box that has the current value of the selected expression. Available only in Break mode. Use this command to examine the current value of a variable, property, or other expression for which you have not defined a watch expression.

CTRL+ALT+Q or SHIFT+F9

CTRL+ALT+Q or SHIFT+F9

CTRL+ALT+Q or SHIFT+F9

CTRL+ALT+Q or SHIFT+F9 or CTRL+D, Q

CTRL+ALT+Q or SHIFT+F9

Debug.Registers

Displays the Registers window, which displays registers content for debugging native code applications.

ALT+5 (Web only) or CTRL+ALT+G

CTRL+ALT+G

CTRL+ALT+G or ALT+F5 (both Visual Basic 6 only)

CTRL+ALT+G or CTRL+D, R

CTRL+ALT+G

Debug.Restart

Ends a debugging session, rebuilds, and then starts to run the application from the start. Available in Break mode and Run mode.

CTRL+SHIFT+F5

CTRL+SHIFT+F5

SHIFT+F5

CTRL+SHIFT+F5

CTRL+SHIFT+F5

Debug.RunToCursor

In 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 pointer location.

CTRL+F10

CTRL+F10

CTRL+F10 or CTRL+F8

CTRL+F10

CTRL+F10

Debug.SetNextStatement

Sets the execution point to the line of code you select.

CTRL+SHIFT+F10

CTRL+SHIFT+F10

CTRL+F9 or CTRL+SHIFT+F10

CTRL+SHIFT+F10

CTRL+SHIFT+F10

Debug.ShowNextStatement

Highlights the next statement to be executed.

ALT+* (on the numeric keypad)

ALT+* (on the numeric keypad)

 

ALT+* (on the numeric keypad)

ALT+* (on the numeric keypad)

Debug.Start

Launches the application under the debugger based off of the settings from the startup project. When in Break mode, invoking this command will run the application until the next breakpoint.

F5

F5

F5

F5

F5

Debug.StartWithoutDebugging

Runs the code without invoking the debugger.

CTRL+F5

CTRL+F5

CTRL+F5

CTRL+F5

CTRL+F5

Debug.StepInto

Executes code one statement at a time, following execution into method calls.

F11

F11

F8 or F11

F11

F11

Debug.StepIntoCurrentProcess

Available from the Processes window.

CTRL+ALT+F11

CTRL+ALT+F11

CTRL+ALT+F11

CTRL+ALT+F11

CTRL+ALT+F11

Debug.StepIntoSpecific

Executes the remaining lines of a function in which the current execution point is located.

SHIFT+ALT+F11

SHIFT+ALT+F11

SHIFT+ALT+F11

SHIFT+ALT+F11

SHIFT+ALT+F11

Debug.StepOut

Available from the Processes window.

SHIFT+F11

SHIFT+F11

CTRL+SHIFT+F8 or SHIFT+F11

SHIFT+F11

SHIFT+F11

Debug.StepOutCurrentProcess

Executes the next line of code, but does not follow execution through any method calls.

CTRL+SHIFT+ALT+F11

CTRL+SHIFT+ALT+F11

CTRL+SHIFT+ALT+F11

CTRL+SHIFT+ALT+F11

CTRL+SHIFT+ALT+F11

Debug.StepOver

Sets the execution point to the line of code you select.

F10

F10

SHIFT+F8 or F10

F10

F10

Debug.StepOverCurrentProcess

Available from the Processes window.

CTRL+ALT+F10

CTRL+ALT+F10

CTRL+ALT+F10

CTRL+ALT+F10

CTRL+ALT+F10

Debug.StopDebugging

Stops running the current application under the debugger.

SHIFT+F5

SHIFT+F5

CTRL+ALT+BREAK

SHIFT+F5

SHIFT+F5

Debug.ToggleBreakpoint

Sets or removes a breakpoint at the current line.

F9

F9

F9

F9

F9

Debug.ToggleDisassembly

Displays the disassembly information for the current source file. Available only in Break mode.

CTRL+F11

CTRL+F11

 

CTRL+F11 or CTRL+D, D

CTRL+F11

Debug.Watch1

Displays the Watch window, which displays the values of selected variables or watch expressions.

CTRL+ALT+W, 1

CTRL+ALT+W, 1

CTRL+ALT+W, 1

CTRL+ALT+W, 1 or CTRL+D, W

CTRL+ALT+W, 1

Debug.Watch2

Displays the Watch2 window to view the values of selected variables or watch expressions.

CTRL+ALT+W, 2

CTRL+ALT+W, 2

CTRL+ALT+W, 2

CTRL+ALT+W, 2

CTRL+ALT+W, 2

Debug.Watch3

Displays the Watch3 window to view the values of selected variables or watch expressions.

CTRL+ALT+W, 3

CTRL+ALT+W, 3

CTRL+ALT+W, 3

CTRL+ALT+W, 3

CTRL+ALT+W, 3

Debug.Watch4

Displays the Watch4 window to view the values of selected variables or watch expressions.

CTRL+ALT+W, 4

CTRL+ALT+W, 4

CTRL+ALT+W, 4

CTRL+ALT+W, 4

CTRL+ALT+W, 4

DebuggerContextMenus.BreakpointsWindow.Delete

Removes the selected breakpoint. Available in the Breakpoints window only.

ALT+F9, D (General settings only)

ALT+F9, D

ALT+F9, D

ALT+F9, D

ALT+F9, D

DebuggerContextMenus.BreakpointsWindow.GoToDisassembly

Displays the Disassembly window. Available in the Breakpoints window only.

ALT+F9, A (General settings only)

ALT+F9, A

ALT+F9, A

ALT+F9, A

ALT+F9, A

DebuggerContextMenus.BreakpointsWindow.GoToSourceCode

Goes to the location of the selected breakpoint in the code file. Available in the Breakpoints window only.

ALT+F9, S (General settings only)

ALT+F9, S

ALT+F9, S

ALT+F9, S

ALT+F9, S

Tools.AttachToProcess

Displays the Attach To Process dialog box, which lets you debug multiple programs at the same time in a single solution.

CTRL+ALT+P

CTRL+ALT+P

CTRL+ALT+P

CTRL+ALT+P

CTRL+ALT+P

Testing

These shortcuts are for working with tests. Visual Basic schemes are not supported.

Command

Description

All Keyboard Schemes

Test.DebugAllTestsInSolution

Runs all tests in the solution in Debug mode.

CTRL+R, CTRL+A

Test.DebugTestsInClass

Runs all tests associated with the current class in Debug mode.

CTRL+R, CTRL+C

Test.DebugTestsInCurrentContext

Runs all tests associated with the current context in Debug mode.

CTRL+R, CTRL+T

Test.DebugTestsInNamespace

Runs all tests associated with the current namespace in Debug mode.

CTRL+R, CTRL+N

Test.RunAllTestsInSolution

Runs all tests in the solution without attaching a debugger.

CTRL+R, A

Test.RunTestsInClass

Runs all tests associated with the current class without attaching a debugger.

CTRL+R, C

Test.RunTestsInCurrentContext

Runs all tests associated with the current context without attaching a debugger.

CTRL+R, T

Test.RunTestsInNamespace

Runs all tests associated with the current namespace without attaching a debugger.

CTRL+R, N

Test.TestResults.RunCheckedTests

Runs all the tests listed and checked in the current result set.

CTRL+R, F

TestResults.DebugAllTestsInTestResults

Runs all the tests listed in the current result set in Debug mode.

CTRL+R, CTRL+D

TestResults.DebugCheckedTests

Runs all the tests listed and checked in the current result set in Debug mode.

CTRL+R, CTRL+F

TestResults.RunAllTestsInTestResults

Runs all the tests listed in the current result set.

CTRL+R, D

Integrated Help

These shortcuts are for viewing topics in Help and moving among them.

Scope

Command

Description

General Development, Web, Visual Studio 6

Visual C#, Visual Basic, Visual Basic 6

Visual C# 2005

Global

Help.DebugHelpContext

 

 

CTRL+ALT+F4

CTRL+F1, D

Global

Help.F1Help

Displays a topic from Help that corresponds to the user interface that has focus.

F1

F1

F1

Global

Help.HelpViewer

Displays the Help Viewer.

CTRL+ALT+F1

CTRL+ALT+F1

CTRL+ALT+F1 or CTRL+F1, C

Global

Help.WindowHelp

Displays a topic from Help that corresponds to the user interface that has focus.

SHIFT+F1

SHIFT+F1

SHIFT+F1

See Also

Tasks

How to: Work with Keyboard Shortcuts

How to: List Current Keyboard Shortcuts

Reference

HTML Designer

Object Browser

Image Editor

Other Resources

Keyboard Shortcuts in Visual Studio

Visual Studio Settings