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
Command
Description
Visual Studio 6
Visual C# 2005
Edit.Copy
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
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
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
F3
F3
F3
F3
Edit.FindNextSelec ted
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
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
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
CTRL+,
CTRL+,
CTRL+,
CTRL+,
Edit.Redo
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
CTRL+A
CTRL+A
CTRL+A
CTRL+A
Edit.StopSearch
ALT+F3, S
ALT+F3, S
ALT+F3, S
ALT+F3, S
Edit.Undo
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.
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
UP ARROW
Edit.MoveControlUpGrid
CTRL+UP ARROW
Edit.SelectNextControl
Moves to the next control on the page based on the TabIndex property of the control.
TAB
Edit.SelectPreviousControl
SHIFT+TAB
Edit.ShowTileGrid
ENTER
Edit.SizeControlDown
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
SHIFT+UP ARROW
Edit.SizeControlUpGrid
Expands the control upward to the next preset grid position on the design surface.
SHIFT+UP ARROW
View.ShowSmartTag
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
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
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
View.ShowSmartTag
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
Edit.EditCell
F2
Edit.RemoveRow
CTRL+DELETE
Edit.SelectionCancel
ESC
View.ViewCode
F7
Command
Description
OtherContextMenus.GraphView.RemovefromWorkspace
DELETE
XsdDesigner.ShowContentModelView
CTRL+2
XsdDesigner.ShowGraphView
CTRL+3
XsdDesigner.ShowStartView
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
Visual C#
Visual Studio 6
Visual C# 2005
Edit.CharLeft
LEFT ARROW
LEFT ARROW
LEFT ARROW
LEFT ARROW
LEFT ARROW
Edit.CharRight
RIGHT ARROW
RIGHT ARROW
RIGHT ARROW
RIGHT ARROW
RIGHT ARROW
Edit.DocumentEnd
END
END
CTRL+END
CTRL+END
msdn.microsoft.com//da5kh0wa.aspx
4/28
5/10/2011
matching brac e in the sourc e file.
Edit.GoToDeclaration
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
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
DOWN ARROW
DOWN ARROW
DOWN ARROW
DOWN ARROW
DOWN ARROW
Edit.LineEnd
END
END
END
END
END
msdn.microsoft.com//da5kh0wa.aspx
5/28
5/10/2011
in the doc ument.
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.
Edit.PageDown
PAGE DOWN
PAGE DOWN
PAGE DOWN
PAGE DOWN
PAGE DOWN
Edit.PageUp
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.
Edit.PreviousMethod
Moves the c ursor to the previous method or type in the c urrent c ode file.
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
CTRL+PAGE UP
CTRL+PAGE UP
Edit.WordNext
CTRL+RIGHT ARROW
CTRL+RIGHT ARROW
CTRL+RIGHT ARROW
CTRL+RIGHT ARROW
CTRL+RIGHT ARROW
Edit.WordPrevious
CTRL+LEFT ARROW
CTRL+LEFT ARROW
CTRL+LEFT ARROW
CTRL+LEFT ARROW
CTRL+LEFT ARROW
View.BrowseNext
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
View.NavigateBac kward
CTRL+-
CTRL+-
CTRL+SHIFT+2 or CTRL+-
CTRL+-
CTRL+-
View.NavigateForward
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
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
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
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
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
SHIFT+PAGE DOWN
SHIFT+PAGE DOWN
SHIFT+PAGE DOWN
Edit.PageUpExtend
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
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
CTRL+SHIFT+PAGE UP
CTRL+SHIFT+PAGE UP
Edit.WordNextExtend
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.
Edit.WordPreviousExtend
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 Studio 6
Visual C# 2005
msdn.microsoft.com//da5kh0wa.aspx
9/28
5/10/2011
Edit.CollapseCurrentRegion
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
CTRL+B, E
Edit.ExpandAllOutlining
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
CTRL+M, CTRL+P
CTRL+M, CTRL+P
CTRL+M, P
Edit.ToggleAllOutlining
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.
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
Edit.ToggleTaskListShortcut
CTRL+K, CTRL+H
CTRL+K, CTRL+H
CTRL+K, CTRL+H
CTRL+K, CTRL+H
Edit.ToggleWordWrap
CTRL+E, CTRL+W
CTRL+E, CTRL+W
CTRL+E, W
Edit.ViewWhiteSpac e
CTRL+R, CTRL+W
CTRL+R, CTRL+W
Text Manipulation
These shortcuts are for deleting, moving, or formatting text in an open doc ument.
Command
Description
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
Edit.CompleteWord
Edit.CopyParameterTip
CTRL+SHIFT+ALT+C
CTRL+SHIFT+ALT+C
CTRL+SHIFT+ALT+C
Edit.DeleteBackwards
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.
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
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
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
CTRL+ENTER
CTRL+ENTER
CTRL+ENTER
CTRL+ENTER
Edit.LineOpenBelow
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
CTRL+J
CTRL+J
CTRL+J
msdn.microsoft.com//da5kh0wa.aspx
12/28
5/10/2011
insertion modes. Available only when you are working in text editors.
Edit.ParameterInfo
Displays the name, number, and type of parameters required for the specified method.
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
Edit.TabifySelec tedLines
CTRL+Q
Edit.TabLeft
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
Edit.UntabifySelectedLines
CTRL+SHIFT+Q
Edit.WordDeleteToEnd
CTRL+DELETE
CTRL+DELETE
CTRL+DELETE
CTRL+DELETE
Edit.WordDeleteToStart
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.
Command
Description
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
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
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
Command
Description
Visual C# 2005
Build.BuildSelection
F6
Build.BuildSolution
CTRL+SHIFT+B CTRL+SHIFT+B
CTRL+SHIFT+B or F6
Build.Cancel
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
msdn.microsoft.com//da5kh0wa.aspx
14/28
5/10/2011
File.OpenWebSite File.Print Displays the Open Web Site dialog box.
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
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
Project.AddResource
Project.Override
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
Visual C# 2005
View.FullScreen
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
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
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
SHIFT+ALT+F6
SHIFT+ALT+F6
SHIFT+ALT+F6
Window.PreviousSplitPane
SHIFT+F6
SHIFT+F6
Window.PreviousTab
CTRL+PAGE UP
CTRL+PAGE UP
CTRL+PAGE UP
Window.ShowEzMDIFileList
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
Visual C#
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
CTRL+/
Tools.Mac rosIDE
ALT+F11
ALT+F11
ALT+F11
View.BookmarkWindow
CTRL+K, CTRL+W
CTRL+W, CTRL+B
View.CallHierarchy
CTRL+ALT+K
CTRL+ALT+K
View.ClassView
CTRL+SHIFT+C
CTRL+K, CTRL+V
CTRL+K, CTRL+V
CTRL+K, CTRL+V
CTRL+K, CTRL+V
View.CodeDefinitionWindow
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+W, A
msdn.microsoft.com//da5kh0wa.aspx
16/28
5/10/2011
View.FindSymbolResults
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
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+W, O
View.PendingChec kins
CTRL+W, G
CTRL+W, G
View.PopBrowseContext
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
SHIFT+F4
SHIFT+F4
SHIFT+F4
SHIFT+F4
View.Resourc eView
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+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+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
CTRL+\, T or CTRL+W, T
View.ToggleDesigner
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+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
Window.PreviousToolWindow
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
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
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
Visual C#
Visual C# 2005
Edit.ClearBookmarks
CTRL+K, CTRL+L
CTRL+K, CTRL+L
CTRL+K, CTRL+L
CTRL+K, CTRL+L
Edit.EnableBookmark
CTRL+B, E
CTRL+B, E
Edit.NextBookmark
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
CTRL+K, CTRL+K
View.BookmarkWindow
CTRL+K, CTRL+W
Edit.PreviousBookmark
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
msdn.microsoft.com//da5kh0wa.aspx
18/28
5/10/2011
Edit.GoToDefinition
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+-
Macro
These shortcuts work with mac ros.
Command
Description
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
CTRL+SHIFT+P
CTRL+SHIFT+P
Image Editor
These shortcuts work for the Image editor.
Command
Definition
Image.AirbrushTool
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
CTRL+SHIFT+I
Image.FilledEllipseTool
CTRL+SHIFT+ALT+P
Image.FilledRec tangleTool
CTRL+SHIFT+ALT+R
msdn.microsoft.com//da5kh0wa.aspx
19/28
5/10/2011
Image.LineTool
Image.MagnificationTool
Switches to the Magnify tool, whic h lets you to magnify specific sec tions of your image.
CTRL+M
Image.Magnify
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
Image.NextRightColor
Changes the drawing bac kground color to the next palette color.
Image.OutlinedEllipseTool
SHIFT+ALT+P
Image.OutlinedRec tangleTool
SHIFT+ALT+R
SHIFT+ALT+W
Image.Penc ilTool
CTRL+I
Image.PreviousColor
Image.PreviousRightColor
Changes the drawing bac kground color to the previous palette c olor.
Image.RectangleSelec tionTool
SHIFT+ALT+S
Image.RectangleTool
Draws a rectangle that has the selected line width and color.
ALT+R
Image.Rotate90Degrees
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
CTRL+U
Image.ZoomIn
Image.ZoomOut
msdn.microsoft.com//da5kh0wa.aspx
20/28
5/10/2011
Edit.RemoveRow
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
Command
Description
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
Visual C#
Debug.ApplyCodeChanges
ALT+F10
msdn.microsoft.com//da5kh0wa.aspx
21/28
5/10/2011
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
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
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
CTRL+SHIFT+F9
CTRL+SHIFT+F9
CTRL+SHIFT+F9
Debug.Disassembly
CTRL+ALT+D
Debug.EnableBreakpoint
CTRL+F9
CTRL+F9
Debug.Exceptions
CTRL+ALT+E
CTRL+ALT+E
CTRL+ALT+E
CTRL+ALT+E or CTRL+D, E
Debug.Immediate
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
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
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
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
CTRL+SHIFT+D, K or CTRL+ALT+D, K
CTRL+SHIFT+D, K
Debug.Processes
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
Debug.Registers
Displays the Registers window, which displays registers c ontent for debugging native c ode applic ations.
CTRL+ALT+G
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.
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.
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
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
CTRL+ALT+F11
CTRL+ALT+F11
CTRL+ALT+F11
Debug.StepIntoSpec ific
SHIFT+ALT+F11
SHIFT+ALT+F11
SHIFT+ALT+F11
SHIFT+ALT+F11
msdn.microsoft.com//da5kh0wa.aspx
25/28
5/10/2011
Debug.StepOver
Sets the exec ution point to the line of code you selec t.
F10
F10
SHIFT+F8 or F10
F10
Debug.StepOverCurrentProcess
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
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
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
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
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
Test.DebugAllTestsInSolution
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
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
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
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
msdn.microsoft.com//da5kh0wa.aspx
28/28