Skip to content

Latest commit

 

History

History
161 lines (134 loc) · 6.18 KB

VisualStudio_Keyboard_Shortcuts.md

File metadata and controls

161 lines (134 loc) · 6.18 KB

Visual Studio Key Board Shortcuts


Build: popular shortcuts

  • Build solution Ctrl+Shift+B Build.BuildSolution
  • Cancel Ctrl+Break Build.Cancel
  • Compile Ctrl+F7 Build.Compile
  • Run code analysis on solution Alt+F11 Build.RunCodeAnalysisonSolution

Debug: popular shortcuts

  • Break at function Ctrl+B Debug.BreakatFunction
  • Break all Ctrl+Alt+Break Debug.BreakAll
  • Delete all breakpoints Ctrl+Shift+F9 Debug.DeleteAllBreakpoints
  • Exceptions Ctrl+Alt+E Debug.Exceptions
  • Quick watch Ctrl+Alt+Q or Shift+F9 Debug.QuickWatch
  • Restart Ctrl+Shift+F5 Debug.Restart
  • Run to cursor Ctrl+F10 Debug.RunToCursor
  • Set next statement Ctrl+Shift+F10 Debug.SetNextStatement
  • Start F5 Debug.Start
  • Start without debugging Ctrl+F5 Debug.StartWithoutDebugging
  • Step into F11 Debug.StepInto
  • Step out Shift+F11 Debug.StepOut
  • Step over F10 Debug.StepOver
  • Stop debugging Shift+F5 Debug.StopDebugging
  • Toggle breakpoint F9 Debug.ToggleBreakpoint

Edit: Popular Shortcuts

  • Break line Enter [Text Editor, Report Designer, Windows Forms Designer] or Shift+Enter [Text Editor] Edit.BreakLine
  • Collapse to definitions Ctrl+M, Ctrl+O [Text Editor] Edit.CollapseToDefinitions
  • Comment selection Ctrl+K, Ctrl+C [Text Editor] Edit.CommentSelection
  • Complete word Alt+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.CompleteWord
  • Copy Ctrl+C or Ctrl+Insert Edit.Copy
  • Cut Ctrl+X or Shift+Delete Edit.Cut
  • Delete Delete [Team Explorer] or Shift+Delete [Sequence Diagram, UML Activity Diagram, Layer Diagram] or Ctrl+Delete [Class Diagram] Edit.Delete
  • Find Ctrl+F Edit.Find
  • Find all references Shift+F12 Edit.FindAllReferences
  • Find in files Ctrl+Shift+F Edit.FindinFiles
  • Find next F3 Edit.FindNext
  • Find next selected Ctrl+F3 Edit.FindNextSelected
  • Format document Ctrl+K, Ctrl+D [Text Editor] Edit.FormatDocument
  • Format selection Ctrl+K, Ctrl+F [Text Editor] Edit.FormatSelection
  • Go to Ctrl+G Edit.GoTo
  • Go to declaration Ctrl+F12 Edit.GoToDeclaration
  • Go to definition F12 Edit.GoToDefinition
  • Go to find combo Ctrl+D Edit.GoToFindCombo
  • Go to next location F8 Edit.GoToNextLocation
  • Insert snippet Ctrl+K, Ctrl+X Edit.InsertSnippet
  • Insert tab Tab [Report Designer, Windows Forms Designer, Text Editor] Edit.InsertTab
  • Line cut Ctrl+L [Text Editor] Edit.LineCut
  • Line down extend column Shift+Alt+Down Arrow [Text Editor] Edit.LineDownExtendColumn
  • Line open above Ctrl+Enter [Text Editor] Edit.LineOpenAbove
  • List members Ctrl+J [Text Editor, Workflow Designer] or Ctrl+K, Ctrl+L [Workflow Designer] or Ctrl+K, L [Workflow Designer] Edit.ListMembers
  • Navigate to Ctrl+, Edit.NavigateTo
  • Open file Ctrl+Shift+G Edit.OpenFile
  • Overtype mode Insert [Text Editor] Edit.OvertypeMode
  • Parameter info Ctrl+Shift+Spacebar [Text Editor, Workflow Designer] or Ctrl+K, Ctrl+P [Workflow Designer] or Ctrl+K, P [Workflow Designer] Edit.ParameterInfo
  • Paste Ctrl+V or Shift+Insert Edit.Paste
  • Peek definition Alt+F12 [Text Editor] Edit.PeekDefinition
  • Redo Ctrl+Y or Shift+Alt+Backspace or Ctrl+Shift+Z Edit.Redo
  • Replace Ctrl+H Edit.Replace
  • Select all Ctrl+A Edit.SelectAll
  • Select current word Ctrl+W [Text Editor] Edit.SelectCurrentWord
  • Selection cancel Esc [Text Editor, Report Designer, Settings Designer, Windows Forms Designer, Managed Resources Editor] Edit.SelectionCancel
  • Remove and sort usings Ctrl+R, Ctrl+G [Text Editor] EditorContextMenus.CodeWindow.RemoveAndSort
  • Surround with Ctrl+K, Ctrl+S (available only in Visual Studio 2019 and earlier) Edit.SurroundWith
  • Tab left Shift+Tab [Text Editor, Report Designer, Windows Forms Editor] Edit.TabLeft
  • Toggle all outlining Ctrl+M, Ctrl+L [Text Editor] Edit.ToggleAllOutlining
  • Toggle bookmark Ctrl+K, Ctrl+K [Text Editor] Edit.ToggleBookmark
  • Toggle completion mode Ctrl+Alt+Space [Text Editor] Edit.- - - ToggleCompletionMode
  • Toggle outlining expansion Ctrl+M, Ctrl+M [Text Editor] Edit.ToggleOutliningExpansion
  • Uncomment selection Ctrl+K, Ctrl+U [Text Editor] Edit.UncommentSelection
  • Undo Ctrl+Z or Alt+Backspace Edit.Undo
  • Word delete to end Ctrl+Delete [Text Editor] Edit.WordDeleteToEnd
  • Word delete to start Ctrl+Backspace [Text Editor] Edit.WordDeleteToStart

File: Popular Shortcuts

  • Exit Alt+F4 File.Exit
  • New file Ctrl+N File.NewFile
  • New project Ctrl+Shift+N File.NewProject
  • New web site Shift+Alt+N File.NewWebSite
  • Open file Ctrl+O File.OpenFile
  • Open project Ctrl+Shift+O File.OpenProject
  • Open web site Shift+Alt+O File.OpenWebSite
  • Rename F2 [Team Explorer] File.Rename
  • Save all Ctrl+Shift+S File.SaveAll
  • Save selected items Ctrl+S File.SaveSelectedItems
  • View in browser Ctrl+Shift+W File.ViewinBrowser

Project: Popular Shortcuts

  • Add existing item Shift+Alt+A Project.AddExistingItem
  • Add new item Ctrl+Shift+A Project.AddNewItem

Refractor: Popular Shortcuts

  • Extract method Ctrl+R, Ctrl+M Refactor.ExtractMethod

Tools: Popular Shortcuts

  • Attach to process Ctrl+Alt+P Tools.AttachtoProcess

View: Popular Shortcuts

  • Class view Ctrl+Shift+C View.ClassView
  • Edit label F2 View.EditLabel
  • Error list Ctrl+, Ctrl+E or Ctrl+, E View.ErrorList
  • Navigate backward Ctrl+- View.NavigateBackward
  • Navigate forward Ctrl+Shift+- View.NavigateForward
  • Object browser Ctrl+Alt+J View.ObjectBrowser
  • Output Ctrl+Alt+O View.Output
  • Properties window F4 View.PropertiesWindow
  • Refresh F5 [Team Explorer] View.Refresh
  • Server explorer Ctrl+Alt+S View.ServerExplorer
  • Show smart tag Ctrl+. or Shift+Alt+F10 [HTML Editor Design View] View.ShowSmartTag
  • Solution explorer Ctrl+Alt+L View.SolutionExplorer
  • TFS Team Explorer Ctrl+, Ctrl+M View.TfsTeamExplorer
  • Toolbox Ctrl+Alt+X View.Toolbox
  • View code Enter [Class Diagram] or F7 [Settings Designer] View.ViewCode
  • View designer Shift+F7 [HTML Editor Source View] View.ViewDesigner

Window: Popular Shortcuts

  • Activate document window Esc Window.ActivateDocumentWindow
  • Close document window Ctrl+F4 Window.CloseDocumentWindow
  • Next document window Ctrl+F6 Window.NextDocumentWindow
  • Next document window nav Ctrl+Tab Window.NextDocumentWindowNav
  • Next split pane F6 Window.NextSplitPane