Anda di halaman 1dari 28

5/10/2011

Pre-defined Keyboard Shortcuts


Visual Studio 2010

Pre-defined Keyboard Shortcuts

The Visual Studio integrated development environment (IDE) inc ludes several pre-defined keyboard shortc ut schemes. When you start Visual Studio for the first time and selec t your settings, the assoc iated sc hemes are automatically set. Thereafter, by using the keyboard options page in the Options dialog box, you c an choose from additional schemes and you can also create your own keyboard shortc uts. This topic shows the keyboard shortcut schemes that pertain to .NET Framework development and Web development. For Visual C++ keyboard shortcuts, see Visual C++ 6.0 Default Shortcut Keys. Table of Contents Designers and Editors, Shared Shortc uts Designers Editors Data File and Projec t 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 CTRL+SHIFT+V or Clipboard ring to the cursor CTRL+SHIFT+INSERT 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

Edit.Delete

Deletes one c harac ter 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.FindAllReferenc es

SHIFT+F12 Displays the list of references for the selected symbol.

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 occ urrence of the search text.

F3

F3

F3

F3

Edit.FindNextSelec ted

Finds the next occ urrence of the currently selected

CTRL+F3

CTRL+F3

CTRL+F3

CTRL+F3

msdn.microsoft.com//da5kh0wa.aspx

1/28

5/10/2011
Edit.GoToFindCombo Puts the cursor in the Find/Command box on the Standard toolbar. CTRL+D

Pre-defined Keyboard Shortcuts


CTRL+/ (Visual C# only) CTRL+SHIFT+F CTRL+/

Edit.Inc rementalSearc h

Ac tivates inc remental searc h. If incremental searc h is on, but no input is passed, the previous searc h query is used. If searc h input has been found, the next invocation searc hes for the next occ urrenc e of the input text.

CTRL+I

ALT+I

CTRL+I

Edit.Paste

Inserts the Clipboard c ontents 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

Searc hes for the selected objec t or member and displays the matc hes 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 CTRL+Y or CTRL+Y or SHIFT+ALT+BACKSPACE SHIFT+ALT+BACKSPACE SHIFT+ALT+BACKSPACE or CTRL+SHIFT+Z or CTRL+SHIFT+Z or CTRL+SHIFT+Z 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 CTRL+SHIFT+H options on the In Files tab of the Find and Replace dialog box.

CTRL+SHIFT+H

CTRL+SHIFT+H

CTRL+SHIFT+H

Edit.SelectAll

Selec ts everything in the c urrent doc ument.

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 selec ted 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 shortc uts in this section work in designers. Editor shortc uts may also work in designers that inc lude text, for example, the Report designer.

Control Manipulation
These shortcuts work in designers, for moving, selecting, and changing the size of c ontrols.

msdn.microsoft.com//da5kh0wa.aspx

2/28

5/10/2011

Edit.MoveControlRight

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

Pre-defined Keyboard Shortcuts

RIGHT ARROW

Edit.MoveControlRightGrid

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

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 surfac e.

ENTER

Edit.SizeControlDown

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

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 inc rements 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 surfac e.

SHIFT+RIGHT ARROW

Edit.SizeControlRightGrid

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

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 c ertain shortc uts are available only in a specific view. Text Navigation shortcuts, Text Selection shortc uts, and Text Manipulation shortc uts, 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 selec ted 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 selec ted text between italic and plain. Available only in Design view.

CTRL+I

CTRL+I

Format.Underline

Toggles the selec ted 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 c urrent c olumn in the table. Available only in

CTRL+ALT+RIGHT

CTRL+ALT+RIGHT

msdn.microsoft.com//da5kh0wa.aspx

3/28

5/10/2011
View.NextView

Pre-defined Keyboard Shortcuts


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 SHIFT+ALT+F10 CTRL+J

View.ViewMarkup

Switches to Source view for the c urrent doc ument. 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 selec ted c ell in Edit mode.

F2

Edit.RemoveRow

Removes the selec ted row.

CTRL+DELETE

Edit.SelectionCancel

Cancels the current selec tion.

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 c urrent XML sc hema in Content Model View.

CTRL+2

XsdDesigner.ShowGraphView

Displays the c urrent XML sc hema in Graph View.

CTRL+3

XsdDesigner.ShowStartView

Displays the c urrent XML sc hema in Start View.

CTRL+1

Editors
The shortc uts in this section work in text editors.

Text Navigation
These shortcuts are for moving around in an open doc ument.

Command

Description

General Development, Web

Visual C#

Visual Basic, Visual Basic 6

Visual Studio 6

Visual C# 2005

Edit.CharLeft

Moves the c ursor one c harac ter to the left.

LEFT ARROW

LEFT ARROW

LEFT ARROW

LEFT ARROW

LEFT ARROW

Edit.CharRight

Moves the c ursor one c harac ter to the right.

RIGHT ARROW

RIGHT ARROW

RIGHT ARROW

RIGHT ARROW

RIGHT ARROW

Edit.DocumentEnd

CTRL+END Moves the c ursor to the last line of the

END

END

CTRL+END

CTRL+END

msdn.microsoft.com//da5kh0wa.aspx

4/28

5/10/2011
matching brac e in the sourc e file.

Pre-defined Keyboard Shortcuts

Edit.GoToDeclaration

Displays the definition of the selec ted symbol in the c ode.

CTRL+F12

CTRL+F12

CTRL+F12

CTRL+F12

CTRL+F12

Edit.GoToDefinition

Navigates to F12 the dec laration for the selec ted symbol in c ode.

F12 or SHIFT+F2

F12 or SHIFT+F2

F12

Edit.GoToNextLocation

F8 Moves the c ursor 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 or F12

F8

Edit.GoToPrevLoc ation

Moves the SHIFT+F8 c ursor bac k to the previous item.

SHIFT+F8 or SHIFT+F12

SHIFT+F8

Edit.GoToReference

Searc hes for references to the object or member selec ted in the file and displays the matches in the Find Symbol Results window.

SHIFT+F12

SHIFT+F12

Edit.Inc rementalSearc h

Starts incremental searc h. If incremental searc h is started but you have not typed any c harac ters, recalls the previous pattern. If text has been found, searc hes for the next occ urrenc e.

CTRL+I

ALT+I

ALT+I

CTRL+I

Edit.LineDown

Moves the c ursor down one line.

DOWN ARROW

DOWN ARROW

DOWN ARROW

DOWN ARROW

DOWN ARROW

Edit.LineEnd

Moves the c ursor to the end of the

END

END

END

END

END

msdn.microsoft.com//da5kh0wa.aspx

5/28

5/10/2011
in the doc ument.

Pre-defined Keyboard Shortcuts

Edit.NextBookmarkInFolder

If the c urrent CTRL+SHIFT+K, bookmark is in CTRL+SHIFT+N a folder, moves to the next bookmark in that folder. Bookmarks outside the folder are skipped. If the c urrent bookmark is not in a folder, moves to the next bookmark at the same level. If the Bookmark window c ontains folders, bookmarks in folders are skipped.

CTRL+SHIFT+K, CTRL+SHIFT+N

CTRL+SHIFT+K, CTRL+SHIFT+N

CTRL+SHIFT+K, CTRL+SHIFT+N

Edit.NextHighlightedReferenc e

Moves the c ursor to the next instanc e of the current type or member.

CTRL+SHIFT+DOWN CTRL+SHIFT+DOWN CTRL+SHIFT+DOWN CTRL+SHIFT+DOWN CTRL+SHIFT+DOWN ARROW ARROW ARROW ARROW ARROW

Edit.NextMethod

Moves the c ursor to the next method or type in the c urrent c ode file.

CTRL+PAGE DOWN or CTRL+DOWN ARROW

CTRL+PAGE DOWN or CTRL+DOWN ARROW

Edit.PageDown

Sc rolls down one screen in the editor window.

PAGE DOWN

PAGE DOWN

PAGE DOWN

PAGE DOWN

PAGE DOWN

Edit.PageUp

Sc rolls up one PAGE UP sc reen in the editor window.

PAGE UP

PAGE UP

PAGE UP

PAGE UP

Edit.PreviousBookmark

Moves the CTRL+K, CTRL+P c ursor to the location of the previous bookmark.

CTRL+K, P

CTRL+K, P

CTRL+K, CTRL+P

CTRL+B, P

Edit.PreviousBookmarkInFolder

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

CTRL+SHIFT+K, CTRL+SHIFT+P

CTRL+SHIFT+K, CTRL+SHIFT+P

CTRL+SHIFT+K, CTRL+SHIFT+P

CTRL+SHIFT+K, CTRL+SHIFT+P

msdn.microsoft.com//da5kh0wa.aspx

6/28

5/10/2011
previous instanc e of the current type or member.

Pre-defined Keyboard Shortcuts

Edit.PreviousMethod

Moves the c ursor to the previous method or type in the c urrent c ode file.

CTRL+PAGE UP or CTRL+UP ARROW

CTRL+PAGE UP or CTRL+UP ARROW

Edit.QuickInfo

CTRL+K, CTRL+I Displays the c omplete dec laration for the specified identifier in your code in a Quic k Info tool tip. For more information, see Quic k Info.

CTRL+I

CTRL+I

CTRL+I

CTRL+K, CTRL+I

Edit.ReverseIncrementalSearch

Changes the direction of incremental searc h 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.Sc rollLineDown

CTRL+DOWN Sc rolls text down one line. ARROW Available in text editors only.

CTRL+DOWN ARROW

CTRL+DOWN ARROW

CTRL+DOWN ARROW

CTRL+DOWN ARROW

Edit.Sc rollLineUp

Sc rolls text up CTRL+UP ARROW one line. Available in text editors only.

CTRL+UP ARROW

CTRL+UP ARROW

CTRL+UP ARROW

CTRL+UP ARROW

Edit.ViewBottom

Moves to the CTRL+PAGE DOWN last visible line of the ac tive window.

CTRL+PAGE DOWN

CTRL+PAGE DOWN

Edit.ViewTop

Moves to the CTRL+PAGE UP first visible line of the ac tive window.

CTRL+PAGE UP

CTRL+PAGE UP

Edit.WordNext

Moves the c ursor to the right one word.

CTRL+RIGHT ARROW

CTRL+RIGHT ARROW

CTRL+RIGHT ARROW

CTRL+RIGHT ARROW

CTRL+RIGHT ARROW

Edit.WordPrevious

Moves the c ursor 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 CTRL+SHIFT+1 next definition, dec laration, or reference of

CTRL+SHIFT+1

CTRL+SHIFT+1

CTRL+SHIFT+1

msdn.microsoft.com//da5kh0wa.aspx

7/28

5/10/2011
View.ForwardBrowseContext Moves to the next item c alled in code in the current file. Uses the Go To Definition navigation stac k. CTRL+SHIFT+7

Pre-defined Keyboard Shortcuts


CTRL+SHIFT+7 CTRL+SHIFT+7 CTRL+SHIFT+7 CTRL+SHIFT+7

View.NavigateBac kward

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

CTRL+SHIFT+F12 Moves to the next error entry in the Error List window, whic h automatic ally sc rolls to the affec ted section of text in the editor.

CTRL+SHIFT+F12

CTRL+SHIFT+F12

CTRL+SHIFT+F12

View.NextTask

Moves to the next task or c omment in the Task List window.

CTRL+SHIFT+F12

CTRL+SHIFT+F12

View.PopBrowseContext

Moves to the previous item c alled in code in the current file. Uses the Go To Definition navigation stac k.

CTRL+SHIFT+8

CTRL+SHIFT+8

CTRL+SHIFT+8

CTRL+SHIFT+8

Window.NextSplitPane

F6 When editing c ode or text in a split window, moves the c ursor to the next pane of the split.

F6

F6

F6

Text Selection
These shortcuts are for selecting text in an open doc ument.

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 selec tion.

SHIFT+LEFT ARROW

SHIFT+LEFT ARROW

SHIFT+LEFT ARROW

Edit.CharLeftExtendColumn

Moves the cursor to the left one c harac ter, SHIFT+ALT+LEFT extending the column selection. ARROW

SHIFT+ALT+LEFT ARROW

SHIFT+ALT+LEFT ARROW

Edit.CharRightExtend

Moves the cursor one character to the right SHIFT+RIGHT ARROW and extends the current selec tion.

SHIFT+RIGHT ARROW

SHIFT+RIGHT ARROW

msdn.microsoft.com//da5kh0wa.aspx

8/28

5/10/2011
Edit.LineDownExtend

Pre-defined Keyboard Shortcuts


Extends text selection down one line, starting at the location of the c ursor. SHIFT+DOWN ARROW SHIFT+UP ARROW SHIFT+DOWN ARROW

Edit.LineDownExtendColumn

Moves the pointer down one line, extending SHIFT+ALT+DOWN the column selection. ARROW

SHIFT+ALT+DOWN ARROW

SHIFT+ALT+DOWN ARROW

Edit.LineEndExtend

Selec ts 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

Selec ts 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

Selec ts text up, line by line, starting from the loc ation of the cursor.

SHIFT+UP ARROW

SHIFT+DOWN ARROW

SHIFT+UP ARROW

Edit.LineUpExtendColumn

Moves the cursor up one line, extending the SHIFT+ALT+UP ARROW column selec tion.

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

Selec ts the word that c ontains the cursor or the word to the right of the c ursor.

CTRL+W

CTRL+SHIFT+W

CTRL+SHIFT+W

Edit.SelectionCancel

Cancels the current selec tion.

ESC

ESC

ESC

Edit.SelectToLastGoBack

Selec ts everything from the c urrent location of the c ursor to the Navigate Backward (CTRL+MINUS SIGN) loc ation in the editor. For more information, see Text Navigation Shortcut Keys, Visual C# Scheme.

CTRL+=

CTRL+=

CTRL+=

Edit.ViewBottomExtend

Moves the cursor and extends the selec tion CTRL+SHIFT+PAGE to the last line in view. DOWN

CTRL+SHIFT+PAGE DOWN

Edit.ViewTopExtend

Extends the selection to the top of the ac tive 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 CTRL+SHIFT+ALT+RIGHT CTRL+SHIFT+ALT+RIGHT ARROW ARROW 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 c hanging the text itself, for example, by hiding a selected area or by outlining methods.

Command

Description

General Development,

Visual C#, Visual Basic,

Visual Studio 6

Visual C# 2005

msdn.microsoft.com//da5kh0wa.aspx

9/28

5/10/2011
Edit.CollapseCurrentRegion

Pre-defined Keyboard Shortcuts


Collapses the region CTRL+M, CTRL+S that c ontains the c ursor 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

Edit.CollapseTag

Hides the selec ted CTRL+M, CTRL+T HTML tag and displays an ellipsis (. . .) instead. You c an view the complete tag as a tooltip by putting the mouse pointer over the ellipsis.

CTRL+M, CTRL+T

CTRL+M, CTRL+T

Edit.CollapsetoDefinitions

Collapses existing CTRL+M, CTRL+O regions to provide a high-level view of the types and members in the source file.

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 c urrent 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 c urrent CTRL+M, CTRL+E region. Put the c ursor on a collapsed region to use this c ommand.

CTRL+M, CTRL+E

CTRL+M, CTRL+E

Edit.HideSelection

Hides the selec ted CTRL+M, CTRL+H text. A signal icon marks the loc ation of the hidden text in the file.

CTRL+M, CTRL+H

CTRL+M, CTRL+H

Edit.Inc reaseFilterLevel

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 CTRL+M, CTRL+U information for the c urrently selec ted region.

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 c ollapsed outlining regions between c ollapsed and

CTRL+M, CTRL+L

CTRL+M, CTRL+L

CTRL+M, L

msdn.microsoft.com//da5kh0wa.aspx

10/28

5/10/2011

manual mode, where the user manually inserts the selec tion.

Pre-defined Keyboard Shortcuts

Edit.ToggleOutliningExpansion

Toggles the c urrently selec ted collapsed region between the c ollapsed 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 c urrent 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.ViewWhiteSpac e

Shows or hides spac es 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 doc ument.

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, suc h 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

CTRL+T Swaps the c harac ters on either side of the c ursor. For example, AC| BD becomes AB|CD. Available only in text editors.

CTRL+T

CTRL+T

Edit.CommentSelec tion

Applies c omment c harac ters for the c urrent language to the current selec tion.

CTRL+K, CTRL+C

CTRL+K, CTRL+C

CTRL+K, CTRL+C

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

Edit.CompleteWord

Completes the c urrent word in the c ompletion 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 CTRL+SHIFT+ALT+C parameter information displayed by IntelliSense to the Clipboard

CTRL+SHIFT+ALT+C

CTRL+SHIFT+ALT+C

CTRL+SHIFT+ALT+C

Edit.DeleteBackwards

Deletes one BACKSPACE c harac ter to the left

BACKSPACE

BACKSPACE

BACKSPACE

msdn.microsoft.com//da5kh0wa.aspx

11/28

5/10/2011
the Formatting pane in the Options dialog box, for the c urrent language.

Pre-defined Keyboard Shortcuts

Edit.FormatSelection

Formats the current CTRL+K, CTRL+F selec tion ac cording to the indentation and code formatting settings spec ified on the Formatting pane in the Options dialog box, for the c urrent language.

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 CTRL+. that shows available Generate From Usage options for the selec ted identifier.

CTRL+.

CTRL+.

CTRL+.

Edit.GenerateMethodStub

Creates a new method dec laration for the method c all that the c ursor is resting in. For more information, see Generate Method Stub.

CTRL+K, CTRL+M

CTRL+K, CTRL+M

CTRL+K, CTRL+M

CTRL+K, CTRL+M

Edit.InsertSnippet

Displays the Code Snippet Picker. The selec ted code snippet will be inserted at the c ursor position. For more information, see Code Snippets (C#).

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 selec ted, 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 c ursor.

CTRL+ENTER

CTRL+ENTER

CTRL+ENTER

CTRL+ENTER

Edit.LineOpenBelow

Inserts a blank line below the c ursor.

CTRL+SHIFT+ENTER

CTRL+SHIFT+ENTER

CTRL+SHIFT+ENTER

CTRL+SHIFT+ENTER

Edit.LineTranspose

Moves the line that c ontains the c ursor below the next line.

SHIFT+ALT+T

SHIFT+ALT+T

SHIFT+ALT+T

SHIFT+ALT+T

Edit.ListMembers

Invokes the IntelliSense c ompletion list.

CTRL+J

CTRL+J

CTRL+J

CTRL+J or CTRL+K, CTRL+L

msdn.microsoft.com//da5kh0wa.aspx

12/28

5/10/2011

insertion modes. Available only when you are working in text editors.

Pre-defined Keyboard Shortcuts

Edit.ParameterInfo

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

CTRL+SHIFT+SPACEBAR CTRL+SHIFT+SPACEBAR CTRL+SHIFT+SPACEBAR CTRL+SHIFT+SPACEBAR or CTRL+SHIFT+I or CTRL+SHIFT+I or CTRL+K, P

Edit.PasteParameterTip

Pastes the CTRL+SHIFT+ALT+P previously copied parameter information from IntelliSense to the location indic ated by the cursor.

CTRL+SHIFT+ALT+P

CTRL+SHIFT+ALT+P

Edit.SurroundWith

Displays the Code Snippet Picker. The selec ted code snippet will be wrapped around the selec ted 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 selec tion.

CTRL+K, CTRL+A

CTRL+K, CTRL+A

CTRL+K, CTRL+A

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

Edit.TabifySelec tedLines

Replac es spac es with tabs in the selec ted text.

CTRL+Q

Edit.TabLeft

Moves selected lines SHIFT+TAB to the left one tab stop.

SHIFT+TAB

SHIFT+TAB

SHIFT+TAB

Edit.UncommentSelec tion

CTRL+K, CTRL+U Removes the c omment syntax from the current line of code.

CTRL+K, CTRL+U

CTRL+K, CTRL+U

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

Edit.UntabifySelectedLines

Replac es tabs with spac es in selec ted text.

CTRL+SHIFT+Q

Edit.WordDeleteToEnd

Deletes the word to the right of the c ursor.

CTRL+DELETE

CTRL+DELETE

CTRL+DELETE

CTRL+DELETE

Edit.WordDeleteToStart

Deletes the word to the left of the c ursor.

CTRL+BACKSPACE

CTRL+BACKSPACE

CTRL+BACKSPACE

CTRL+BACKSPACE

Edit.WordTranspose

Transposes the CTRL+SHIFT+T 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

Refac tor.Rename

Displays the Rename dialog box, which allows for renaming all referenc es for an

F2

msdn.microsoft.com//da5kh0wa.aspx

13/28

5/10/2011
Data
These shortcuts are for working with data in the IDE.

Pre-defined Keyboard Shortcuts

Command

Description

All Keyboard Schemes

Data.Column

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

CTRL+L

Data.Exec ute

Runs the currently active database objec t.

CTRL+ALT+F5

Data.InsertColumn

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

INSERT

Data.ShowDataSourc es

Displays the Data Sources window.

SHIFT+ALT+D

Data.StepInto

Steps into debug mode for the currently active database objec t.

ALT+F5

QueryDesigner.CancelRetrievingData Canc els or stops the c urrently 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 CTRL+1 Designer.

QueryDesigner.ExecuteSQL

Exec utes 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 Visual Studio 6 Basic, Visual Basic 6

Visual C# 2005

Build.BuildSelection

Builds the selected projec t and its dependencies.

F6

Build.BuildSolution

Builds all the projec ts 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 objec t file that c ontains machine c ode, CTRL+F7 linker directives, sec tions, external referenc es, and function/data names for the selec ted file.

CTRL+F7

Build.RebuildSolution

Rebuilds the solution

msdn.microsoft.com//da5kh0wa.aspx

14/28

5/10/2011
File.OpenWebSite File.Print Displays the Open Web Site dialog box.

Pre-defined Keyboard Shortcuts


SHIFT+ALT+O CTRL+P SHIFT+ALT+O CTRL+P SHIFT+ALT+O CTRL+P SHIFT+ALT+O CTRL+P

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

File.Rename

Lets you modify the name of the item selec ted in Solution Explorer.

File.SaveAll

Saves all doc uments in the c urrent 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 selec ted items in the c urrent project.

CTRL+S

CTRL+S

CTRL+S

CTRL+S

File.SaveSelectedItemsAs Displays the Save File As dialog box when items are selec ted in the editor.

File.ViewinBrowser

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

CTRL+SHIFT+W

CTRL+SHIFT+W CTRL+SHIFT+W

Project.AddClass

Displays the Add New Item dialog box and selec ts 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, whic h 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 c urrent project.

Project.Override

Lets you override base c lass 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 doc ument windows.

Command

Description

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

Visual Basic, Visual Basic 6

Visual C# 2005

View.FullScreen

Toggles Full Sc reen mode on and off.

SHIFT+ALT+ENTER

SHIFT+ALT+ENTER SHIFT+ALT+ENTER

Window.ActivateDoc umentWindow

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

ESC

ESC

ESC

Window.CloseDoc umentWindow Window.CloseToolWindow

Closes the c urrent tab. Closes the c urrent tool window.

CTRL+F4 SHIFT+ESC

CTRL+F4 SHIFT+ESC

CTRL+F4 SHIFT+ESC

Window.Doc k

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

Window.MovetoNavigationBar

Moves the c ursor to the drop-down bar loc ated at the top of the c ode editor when the editor is in Code view or Server Code view.

CTRL+F2

CTRL+F2

CTRL+F2

msdn.microsoft.com//da5kh0wa.aspx

15/28

5/10/2011
Window.NextToolWindowNav

Pre-defined Keyboard Shortcuts


Displays the IDE Navigator, with the first tool window selected. Moves to the previous doc ument in the editor or designer. ALT+F7 ALT+F7

Window.PreviousDocumentWindow

CTRL+SHIFT+F6

CTRL+SHIFT+F6

CTRL+SHIFT+F6

Window.PreviousDocumentWindowNav Displays the IDE Navigator, with the previous doc ument window selec ted.

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 splitpane 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 doc uments 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 , whic h CTRL+K, CTRL+B lets you searc h for and insert c ode snippets in files. For more information, see Code Snippets Manager.

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.Mac rosIDE

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.ClassViewGoToSearc hCombo 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

CTRL+ALT+A Displays the Command window, where commands c an be invoked to make changes to the IDE.

CTRL+ALT+A or CTRL+ALT+A CTRL+W, A

CTRL+ALT+A or CTRL+W, A

msdn.microsoft.com//da5kh0wa.aspx

16/28

5/10/2011
View.FindSymbolResults

Pre-defined Keyboard Shortcuts


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.Mac roExplorer

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

ALT+F8

ALT+F8

ALT+F8

ALT+F8

View.Objec tBrowser

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 CTRL+ALT+O messages at run time.

CTRL+ALT+O or CTRL+ALT+O CTRL+W, O

CTRL+ALT+O or CTRL+W, O

View.PendingChec kins

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.Resourc eView

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 servic es, and other operating system servic es.

CTRL+ALT+S

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

CTRL+ALT+S or CTRL+W, L

View.SolutionExplorer

Displays Solution Explorer, which lists the projec ts and files in the c urrent 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, whic h displays custom tasks, c omments, 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 selec ted item in Code view of the editor.

F7 (General and Web)

View.Toolbox

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

CTRL+ALT+X

CTRL+ALT+X or CTRL+ALT+X CTRL+W, 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+ALT+R CTRL+W, W

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#

Visual Basic,

All Other

msdn.microsoft.com//da5kh0wa.aspx

17/28

5/10/2011

Pre-defined Keyboard Shortcuts


SHIFT+ALT+B SHIFT+ALT+B SHIFT+ALT+B For example, if Interface1 inherits from Interface2, Interface3, and Interfac e4, the parental interfac es are listed on the shape compartment for Interfac e1. By using this command, you can c ollapse the list of inherited interfaces to show only summary information about the number of base interfaces inherited by Interfac e1.

Edit.ExpandCollapseBaseTypeList Expands or c ollapses base types in the selec ted shape compartment.

Edit.NavigateToLollipop

Selec ts the Interface Lollipop for a shape c ompartment. The lollipop appears SHIFT+ALT+L SHIFT+ALT+L SHIFT+ALT+L on shapes that implement one or more interfac es.

Edit.RemoveFromDiagram

Removes the selec ted shape compartment from the diagram.

DELETE

DELETE

DELETE

View.ViewCode

For the selec ted item, opens the corresponding file and puts the c ursor in the correc t loc ation.

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 c urrent 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 c urrent bookmark is in a folder, moves to the next bookmark in that folder. Bookmarks outside the folder are skipped. If the c urrent 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 doc ument.

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 c ursor 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 c urrent bookmark is in a folder, moves to the previous bookmark in that folder. Bookmarks outside the folder are skipped. If the c urrent 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+K, CTRL+SHIFT+P CTRL+SHIFT+P

msdn.microsoft.com//da5kh0wa.aspx

18/28

5/10/2011
Edit.GoToDefinition

Pre-defined Keyboard Shortcuts


Navigates to the declaration for the selec ted symbol in c ode. Searc hes for referenc es to the object or member selec ted in the file and displays the matc hes in the Find Symbol Results window. F12 F12 or SHIFT+F2 SHIFT+F12

Edit.GoToReference

Edit.QuickFindSymbol

Searc hes for the object or member selec ted in the file and displays the matches in the Find Symbol Results window.

SHIFT+ALT+F12

SHIFT+ALT+F12 SHIFT+ALT+F12

View.Objec tBrowserBack

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

ALT+-

View.Objec tBrowserForward

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

SHIFT+ALT+-

View.Objec tBrowserGoToSearchCombo Places foc us in the Object Browser Search field.

SHIFT+ALT+F10 or SHIFT+ALT+F10 SHIFT+ALT+F10 CTRL+. or CTRL+. or CTRL+.

Macro
These shortcuts work with mac ros.

Command

Description

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

Visual Basic, Visual Basic 6

Visual Studio 6

View.Mac roExplorer

Displays Macro Explorer, whic h lists the available mac ros in the c urrent solution.

ALT+F8

ALT+F8

ALT+F8

Tools.Mac rosIDE

Starts the Macros IDE, for writing Visual Studio Mac ros.

ALT+F11

ALT+F11

Tools.RecordTemporaryMacro Puts the Visual Studio IDE in mac ro rec ord 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 c olor.

CTRL+A

Image.BrushTool

Draws by using a brush with the selec ted shape, size, and c olor.

CTRL+B

Image.CopyandOutlineSelection

Creates a copy of the c urrent selection and outlines it. If the bac kground color is in the current selec tion, it will be exc luded if you have transparent selec ted. 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 Bac kground.

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 c urrent background c olor).

CTRL+SHIFT+I

Image.FilledEllipseTool

Draws a filled ellipse.

CTRL+SHIFT+ALT+P

Image.FilledRec tangleTool

Draws a filled rectangle.

CTRL+SHIFT+ALT+R

msdn.microsoft.com//da5kh0wa.aspx

19/28

5/10/2011
Image.LineTool

Pre-defined Keyboard Shortcuts


Draws a straight line with the selec ted shape, size, and color. CTRL+L

Image.MagnificationTool

Switches to the Magnify tool, whic h lets you to magnify specific sec tions 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 whic h you c an create an image for a different image type. For more information, see New <Devic e> Image Type Dialog Box.

INSERT

Image.NextColor

Changes the drawing foreground c olor to the next palette color.

CTRL+RIGHT ARROW or CTRL+]

Image.NextRightColor

Changes the drawing bac kground 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.OutlinedRec tangleTool

Draws a filled rectangle with an outline

SHIFT+ALT+R

Image.OutlinedRoundedRectangleTool Draws a filled round rec tangle with an outline.

SHIFT+ALT+W

Image.Penc ilTool

Draws using a single-pixel penc il.

CTRL+I

Image.PreviousColor

Changes the drawing foreground c olor to the previous palette color.

CTRL+LEFT ARROW or CTRL+[

Image.PreviousRightColor

Changes the drawing bac kground color to the previous palette c olor.

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

Image.RectangleSelec tionTool

Selec ts a rectangular part of the image to move, c opy, 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.RoundedRec tangleTool

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

ALT+W

Image.ShowGrid

Toggles the pixel grid (selec ts or c lears 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 (selec ts or c lears the Tile grid option in the Grid Settings dialog box. For CTRL+SHIFT+ALT+S more information, see Grid Settings Dialog Box.

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 direc tion. 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 c urrent selec tion as a brush.

CTRL+U

Image.ZoomIn

Increases the magnification for the c urrent view.

CTRL+UP ARROW or CTRL+SHIFT+.

Image.ZoomOut

Reduces the magnification of the c urrent view.

CTRL+DOWN ARROW or CTRL+SHIFT+,

msdn.microsoft.com//da5kh0wa.aspx

20/28

5/10/2011
Edit.RemoveRow

Pre-defined Keyboard Shortcuts


Deletes the selec ted row in Other view and Strings view. CTRL+DELETE

Edit.SelectionCancel Cancels the current selec tion

ESC

Resources.Audio

Switches the Managed Resources editor to Audio view, which displays sound files in the c urrent 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, whic h displays ic on (*.ico) files in the current project.

CTRL+3

Resources.Images

Switches the Managed Resources editor to Images view, which displays image files in the c urrent projec t. Formats of CTRL+2 displayed files include .bmp, .jpg, and .gif.

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 Refac toring (C#). These shortc uts are not available in any of the Visual Basic keyboard sc hemes.

Command

Description

All Keyboard Schemes

Refac tor.EncapsulateField

Displays the Encapsulate Field dialog box, which lets you create a property from an existing field and updates all referenc es to use the new property. For more information, see Enc apsulate Field Dialog Box.

CTRL+R, E

Refac tor.ExtractInterfac e

Displays the Extract Interface dialog box, which lets you c reate a new interfac e that has members CTRL+R, derived from an existing c lass, struc t, or interface. For more information, see Extract Interfac e Dialog I Box.

Refac tor.ExtractMethod

Displays the Extract Method dialog box, whic h lets you create a method from the selec ted c ode. For CTRL+R, M more information, see Extract Method Dialog Box.

Refac tor.PromoteLocalVariabletoParameter Moves a variable from a loc al usage to a method, indexer, or construc tor parameter and updates the call sites c orrectly. For more information, see Promote Loc al Variable to Parameter.

CTRL+R, P

Refac tor.RemoveParameters

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

CTRL+R, V

Refac tor.Rename

Displays the Rename dialog box, which lets you rename all references for an identifier. For more information, see Rename Dialog Box.

CTRL+R, R

Refac tor.ReorderParameters

Displays the Reorder Parameters dialog box, which lets you change the order of the parameters for CTRL+R, O methods, indexers, and delegates. For more information, see Reorder Parameters Dialog Box.

Debugging
These shortcuts are for debugging code.

Command

Description

General Development, Web

Visual C#

Visual Basic, Visual Basic Visual C# 2005 6

Debug.ApplyCodeChanges

Starts a build ALT+F10 that lets you use the Edit

ALT+F10

msdn.microsoft.com//da5kh0wa.aspx

21/28

5/10/2011

Pre-defined Keyboard Shortcuts


window, which displays variables used in the c urrent line of c ode and the previous line of code.

Debug.BreakAll

CTRL+ALT+BREAK Temporarily stops exec ution of all processes in a debugging session. Available only in Run mode.

CTRL+BREAK

CTRL+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 c an add, remove, and modify breakpoints.

CTRL+ALT+B

CTRL+ALT+B

CTRL+ALT+B

CTRL+B or CTRL+D, CTRL+B

Debug.CallStac k

Displays the CTRL+ALT+C Call Stack window, which displays a list of all active methods or stack frames for the c urrent thread of exec ution.

CTRL+L or CTRL+ALT+C

CTRL+L or CTRL+ALT+C

CTRL+ALT+C or CTRL+D, C

Debug.DeleteAllBreakpoints

Clears all the CTRL+SHIFT+F9 breakpoints in the projec t.

CTRL+SHIFT+F9

CTRL+SHIFT+F9

CTRL+SHIFT+F9

Debug.Disassembly

CTRL+ALT+D Displays the Disassembly window.

CTRL+ALT+D

Debug.EnableBreakpoint

Toggles the breakpoint between disabled and enabled.

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

Debug.Immediate

Displays the Immediate window, where expressions c an be evaluated.

CTRL+ALT+I

CTRL+G or CTRL+ALT+I

CTRL+G or CTRL+ALT+I

CTRL+ALT+I or CTRL+D, I

msdn.microsoft.com//da5kh0wa.aspx

22/28

5/10/2011

on the Debug Location toolbar, if it is open.

Pre-defined Keyboard Shortcuts

Debug.LocationToolbar.Stac kFrameCombo

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

CTRL+7

CTRL+7

CTRL+7

CTRL+7

Debug.LocationToolbar.ThreadCombo

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

CTRL+6

CTRL+6

CTRL+6

Debug.LocationToolbar.ToggleCurrentThreadFlaggedState

Flags or unflags the c urrent thread in the Thread box on the Debug Location toolbar.

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

Debug.Memory1

Displays the Memory 1 window to view large buffers, strings, and other data that do not display c learly 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

Debug.Memory2

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

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

CTRL+ALT+M, 3

CTRL+ALT+M, 3

CTRL+ALT+M, 3

CTRL+ALT+M, 3

msdn.microsoft.com//da5kh0wa.aspx

23/28

5/10/2011

display c learly in the Watch or Variables windows.

Pre-defined Keyboard Shortcuts

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 c an right- click and then c lick Show Modules for all Programs.

CTRL+ALT+U

CTRL+ALT+U

CTRL+ALT+U

CTRL+ALT+U

Debug.ParallelStac ks

Opens the Parallel Stac ks window.

CTRL+SHIFT+D, S

CTRL+SHIFT+D, S

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

CTRL+SHIFT+D, S

Debug.ParallelTasks

CTRL+SHIFT+D, K Opens the Parallel Tasks window.

CTRL+SHIFT+D, K

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

CTRL+SHIFT+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

Debug.QuickWatch

Displays the CTRL+ALT+Q or QuickWatch SHIFT+F9 dialog box that has the c urrent value of the selected expression. Available only in Break mode. Use this c ommand to examine the c urrent value of a variable, property, or other expression for which you have not defined a watc h expression.

CTRL+ALT+Q or SHIFT+F9

CTRL+ALT+Q or SHIFT+F9

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

Debug.Registers

Displays the Registers window, which displays registers c ontent for debugging native c ode applic ations.

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

msdn.microsoft.com//da5kh0wa.aspx

24/28

5/10/2011

mode, resumes exec ution of your c ode from the c urrent statement to the selec ted statement. The Current Line of Exec ution margin indicator appears in the Margin Indicator bar. In Design mode, starts the debugger and executes your c ode to the pointer loc ation.

Pre-defined Keyboard Shortcuts

Debug.SetNextStatement

Sets the exec ution point to the line of code you selec t.

CTRL+SHIFT+F10

CTRL+SHIFT+F10

CTRL+F9 or CTRL+SHIFT+F10

CTRL+SHIFT+F10

Debug.ShowNextStatement

Highlights the ALT+* (on the numeric keypad) next statement to be executed.

ALT+* (on the numeric keypad)

ALT+* (on the numeric keypad)

Debug.Start

Launches the F5 applic ation under the debugger based off of the settings from the startup project. When in Break mode, invoking this c ommand will run the applic ation until the next breakpoint.

F5

F5

F5

Debug.StartWithoutDebugging

Runs the c ode without invoking the debugger.

CTRL+F5

CTRL+F5

CTRL+F5

CTRL+F5

Debug.StepInto

Exec utes c ode one statement at a time, following exec ution into method c alls.

F11

F11

F8 or F11

F11

Debug.StepIntoCurrentProcess

Available from CTRL+ALT+F11 the Processes window.

CTRL+ALT+F11

CTRL+ALT+F11

CTRL+ALT+F11

Debug.StepIntoSpec ific

Exec utes the remaining lines of a

SHIFT+ALT+F11

SHIFT+ALT+F11

SHIFT+ALT+F11

SHIFT+ALT+F11

msdn.microsoft.com//da5kh0wa.aspx

25/28

5/10/2011

Pre-defined Keyboard Shortcuts


does not follow exec ution through any method calls.

Debug.StepOver

Sets the exec ution point to the line of code you selec t.

F10

F10

SHIFT+F8 or F10

F10

Debug.StepOverCurrentProcess

Available from CTRL+ALT+F10 the Processes window.

CTRL+ALT+F10

CTRL+ALT+F10

CTRL+ALT+F10

Debug.StopDebugging

Stops running SHIFT+F5 the c urrent applic ation under the debugger.

SHIFT+F5

CTRL+ALT+BREAK

SHIFT+F5

Debug.ToggleBreakpoint

Sets or removes a breakpoint at the c urrent line.

F9

F9

F9

F9

Debug.ToggleDisassembly

Displays the CTRL+F11 disassembly information for the c urrent source file. Available only in Break mode.

CTRL+F11

CTRL+F11 or CTRL+D, D

Debug.Watc h1

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

CTRL+ALT+W, 1

CTRL+ALT+W, 1

CTRL+ALT+W, 1

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

Debug.Watc h2

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

CTRL+ALT+W, 2

CTRL+ALT+W, 2

CTRL+ALT+W, 2

CTRL+ALT+W, 2

Debug.Watc h3

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

CTRL+ALT+W, 3

CTRL+ALT+W, 3

CTRL+ALT+W, 3

CTRL+ALT+W, 3

Debug.Watc h4

Displays the Watch4 window to view the

CTRL+ALT+W, 4

CTRL+ALT+W, 4

CTRL+ALT+W, 4

CTRL+ALT+W, 4

msdn.microsoft.com//da5kh0wa.aspx

26/28

5/10/2011

Pre-defined Keyboard Shortcuts


Disassembly settings only) window. Available in the Breakpoints window only.

DebuggerContextMenus.BreakpointsWindow.GoToSourc eCode Goes to the loc ation of the selec ted breakpoint in the c ode file. Available in the Breakpoints window only.

ALT+F9, S (General settings only)

ALT+F9, S

ALT+F9, S

ALT+F9, S

Tools.Attac hToProcess

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

Testing
These shortcuts are for working with tests. Visual Basic sc hemes 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.RunTestsInNamespac e

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

CTRL+R, N

Test.TestResults.RunCheckedTests

Runs all the tests listed and c hecked in the current result set.

CTRL+R, F

TestResults.DebugAllTestsInTestResults

Runs all the tests listed in the c urrent result set in Debug mode.

CTRL+R, CTRL+D

TestResults.DebugCheckedTests

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

CTRL+R, CTRL+F

TestResults.RunAllTestsInTestResults

Runs all the tests listed in the c urrent result set.

CTRL+R, D

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

msdn.microsoft.com//da5kh0wa.aspx

27/28

5/10/2011
See Also
Tasks How to: Work with Keyboard Shortc uts How to: List Current Keyboard Shortc uts Reference HTML Designer Objec t Browser Image Editor Other Resources Keyboard Shortcuts in Visual Studio Working with Settings Resourc es in .resx File Format

Pre-defined Keyboard Shortcuts

Community Content
View.ShowSmartTag keyboard shortcut also works in code editor
The shortcut for View.ShowSmartTag (SHIFT+ALT+F10) also works in code editor and should be listed in its sec tion. It is very useful there for quick c ode fixes e.g. adding appropriate using c lause (Imports in VB) for c ommonly-used namespac es like System.Collec tions.Generic. 1/26/2011 Z.P.Karol

2011 Microsoft. All rights reserved.

msdn.microsoft.com//da5kh0wa.aspx

28/28

Anda mungkin juga menyukai