Default Keyboard Shortcuts for Frequently Used Commands in Visual Studio

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Default Keyboard Shortcuts for Frequently Used Commands in Visual Studio.

You can access frequently used commands in Visual Studio by choosing these default keyboard shortcuts. For a complete list of commands that have default shortcuts, see Default Keyboard Shortcuts.

System_CAPS_ICON_note.jpg Note

You can look up the shortcut for any command by opening the Options dialog box, expanding the Environment node, and then choosing Keyboard.

In this topic

BuildEditProjectToolsWindow
DebugFileRefactorView
CommandsKeyboard Shortcuts [Contexts]
Build.BuildSolutionCtrl+Shift+B [Global]
Build.CancelCtrl+Break [Global]
Build.CompileCtrl+F7 [Global]
Build.RunCodeAnalysisonSolutionAlt+F11 [Global]
CommandsKeyboard Shortcuts [Contexts]
Debug.BreakatFunctionCtrl+B [Global]
Debug.BreakAllCtrl+Alt+Break [Global]
Debug.DeleteAllBreakpointsCtrl+Shift+F9 [Global]
Debug.ExceptionsCtrl+Alt+E [Global]
Debug.QuickWatchCtrl+Alt+Q [Global]

or Shift+F9 [Global]
Debug.RestartCtrl+Shift+F5 [Global]
Debug.RunToCursorCtrl+F10 [Global]
Debug.SetNextStatementCtrl+Shift+F10 [Global]
Debug.StartF5 [Global]
Debug.StartWithoutDebuggingCtrl+F5 [Global]
Debug.StepIntoF11 [Global]
Debug.StepOutShift+F11 [Global]
Debug.StepOverF10 [Global]
Debug.StopDebuggingShift+F5 [Global]
Debug.ToggleBreakpointF9 [Global]
CommandsKeyboard Shortcuts [Contexts]
Edit.BreakLineEnter [Text Editor, Report Designer, Windows Forms Designer]

or Shift+Enter [Text Editor]
Edit.CollapsetoDefinitionsCtrl+M, Ctrl+O [Text Editor]
Edit.CommentSelectionCtrl+K, Ctrl+C [Text Editor]
Edit.CompleteWordAlt+Right Arrow [Text Editor, Workflow Designer]

or Ctrl+Spacebar [Text Editor, Workflow Designer]

or Ctrl+K, W [Workflow Designer]

or Ctrl+K, Ctrl+W [Workflow Designer]
Edit.CopyCtrl+C [Global]

or Ctrl+Insert [Global]
Edit.CutCtrl+X [Global]

or Shift+Delete [Global]
Edit.DeleteDelete [Global, Team Explorer]

or Shift+Delete [Sequence Diagram, UML Activity Diagram, Layer Diagram]

or Ctrl+Delete [Class Diagram]
Edit.FindCtrl+F [Global]
Edit.FindAllReferencesShift+F12 [Global]
dit.FindinFilesCtrl+Shift+F [Global]
Edit.FindNextF3 [Global]
Edit.FindNextSelectedCtrl+F3 [Global]
Edit.FormatDocumentCtrl+K, Ctrl+D [Text Editor]
Edit.FormatSelectionCtrl+K, Ctrl+F [Text Editor]
Edit.GoToCtrl+G [Global]
Edit.GoToDeclarationCtrl+F12 [Global]
Edit.GoToDefinitionF12
Edit.GoToFindComboCtrl+D [Global]
Edit.GoToNextLocationF8 [Global]
Edit.InsertSnippetCtrl+K, Ctrl+X [Global]
Edit.InsertTabTab [Report Designer, Windows Forms Designer, Text Editor]
Edit.LineCutCtrl+L [Text Editor]
Edit.LineDownExtendColumnShift+Alt+Down Arrow [Text Editor]
Edit.LineOpenAboveCtrl+Enter [Text Editor]
Edit.ListMembersCtrl+J [Text Editor, Workflow Designer]

or Ctrl+K, Ctrl+L [Workflow Designer]

or Ctrl+K, L [Workflow Designer]
dit.NavigateToCtrl+, [Global]
Edit.OpenFileCtrl+Shift+G [Global]
Edit.OvertypeModeInsert [Text Editor]
Edit.ParameterInfoCtrl+Shift+Spacebar [Text Editor, Workflow Designer]

or Ctrl+K, Ctrl+P [Workflow Designer]

or Ctrl+K, P [Workflow Designer]
Edit.PasteCtrl+V [Global]

or Shift+Insert [Global]
Edit.PeekDefinitionAlt+F12 [Text Editor]
Edit.RedoCtrl+Y [Global]

or Shift+Alt+Backspace [Global]

or Ctrl+Shift+Z [Global]
Edit.ReplaceCtrl+H [Global]
Edit.SelectAllCtrl+A [Global]
Edit.SelectCurrentWordCtrl+W [Text Editor]
Edit.SelectionCancelEsc [Text Editor, Report Designer, Settings Designer, Windows Forms Designer, Managed Resources Editor]
dit.SurroundWithCtrl+K, Ctrl+S [Global]
Edit.TabLeftShift+Tab [Text Editor, Report Designer, Windows Forms Editor]
Edit.ToggleAllOutliningCtrl+M, Ctrl+L [Text Editor]
Edit.ToggleBookmarkCtrl+K, Ctrl+K [Text Editor]
Edit.ToggleCompletionModeCtrl+Alt+Space [Text Editor]
Edit.ToggleOutliningExpansionCtrl+M, Ctrl+M [Text Editor]
Edit.UncommentSelectionCtrl+K, Ctrl+U [Text Editor]
Edit.UndoCtrl+Z [Global]

or Alt+Backspace [Global]
Edit.WordDeleteToEndCtrl+Delete [Text Editor]
Edit.WordDeleteToStartCtrl+Backspace [Text Editor]
CommandsKeyboard Shortcuts [Contexts]
File.ExitAlt+F4 [Global]
File.NewFileCtrl+N [Global]
File.NewProjectCtrl+Shift+N [Global]
File.NewWebSiteShift+Alt+N [Global]
File.OpenFileCtrl+O [Global]
File.OpenProjectCtrl+Shift+O [Global]
File.OpenWebSiteShift+Alt+O [Global]
File.RenameF2 [Team Explorer]
File.SaveAllCtrl+Shift+S [Global]
File.SaveSelectedItemsCtrl+S [Global]
File.ViewinBrowserCtrl+Shift+W [Global]
CommandsKeyboard Shortcuts [Contexts]
Project.AddExistingItemShift+Alt+A [Global]
Project.AddNewItemCtrl+Shift+A [Global]
CommandKeyboard Shortcut [Context]
Refactor.ExtractMethodCtrl+R, Ctrl+M [Global]
CommandKeyboard Shortcut [Context]
Tools.AttachtoProcessCtrl+Alt+P [Global]
CommandsKeyboard Shortcuts [Contexts]
View.ClassViewCtrl+Shift+C [Global]
View.EditLabelF2 [Global]
View.ErrorListCtrl+\, Ctrl+E [Global]

or Ctrl+\, E [Global]
View.NavigateBackwardCtrl+- [Global]
View.NavigateForwardCtrl+Shift+- [Global]
View.ObjectBrowserCtrl+Alt+J [Global]
View.OutputCtrl+Alt+O [Global]
View.PropertiesWindowF4
View.RefreshF5 [Team Explorer, Team Foundation Build Detail Editor]
View.ServerExplorerCtrl+Alt+S [Global]
View.ShowSmartTagCtrl+. [Global]

or Shift+Alt+F10 [Global, HTML Editor Design View]
View.SolutionExplorerCtrl+Alt+L [Global]
iew.TfsTeamExplorerCtrl+\, Ctrl+M [Global]
View.ToolboxCtrl+Alt+X [Global]
View.ViewCodeEnter [Class Diagram]

or F7 [Settings Designer]
View.ViewDesignerShift+F7 [HTML Editor Source View]
CommandsKeyboard Shortcuts [Contexts]
Window.ActivateDocumentWindowEsc [Global]
Window.CloseDocumentWindowCtrl+F4 [Global]
Window.NextDocumentWindowCtrl+F6 [Global]
Window.NextDocumentWindowNavCtrl+Tab [Global]
Window.NextSplitPaneF6 [Global]
Show: