Keyboard shortcuts in Visual Studio

0
35

Printable shortcut cheat sheet.

Back
Next

Edit shortcuts

CommandsKeyboard shortcuts [Special contexts]Command ID
Break lineEnter [Text Editor, Report Designer, Windows Forms Designer]

or Shift+Enter [Text Editor]
Edit.BreakLine
Collapse to definitionsCtrl+MCtrl+O [Text Editor]Edit.CollapseToDefinitions
Comment selectionCtrl+KCtrl+C [Text Editor]Edit.CommentSelection
Complete wordAlt+Right Arrow [Text Editor, Workflow Designer]

or Ctrl+Spacebar [Text Editor, Workflow Designer]

or Ctrl+KW [Workflow Designer]

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

or Ctrl+Insert
Edit.Copy
CutCtrl+X

or Shift+Delete
Edit.Cut
DeleteDelete [Team Explorer]

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

or Ctrl+Delete [Class Diagram]
Edit.Delete
FindCtrl+FEdit.Find
Find all referencesShift+F12Edit.FindAllReferences
Find in filesCtrl+Shift+FEdit.FindinFiles
Find nextF3Edit.FindNext
Find next selectedCtrl+F3Edit.FindNextSelected
Format documentCtrl+K, Ctrl+D [Text Editor]Edit.FormatDocument
Format selectionCtrl+K, Ctrl+F [Text Editor]Edit.FormatSelection
Go toCtrl+GEdit.GoTo
Go to declarationCtrl+F12Edit.GoToDeclaration
Go to definitionF12Edit.GoToDefinition
Go to find comboCtrl+DEdit.GoToFindCombo
Go to next locationF8Edit.GoToNextLocation
Insert snippetCtrl+KCtrl+XEdit.InsertSnippet
Insert tabTab [Report Designer, Windows Forms Designer, Text Editor]Edit.InsertTab
Line cutCtrl+L [Text Editor]Edit.LineCut
Line down extend columnShift+Alt+Down Arrow [Text Editor]Edit.LineDownExtendColumn
Line open aboveCtrl+Enter [Text Editor]Edit.LineOpenAbove
List membersCtrl+J [Text Editor, Workflow Designer]

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

or Ctrl+K, L [Workflow Designer]
Edit.ListMembers
Navigate toCtrl+,Edit.NavigateTo
Open fileCtrl+Shift+GEdit.OpenFile
Overtype modeInsert [Text Editor]Edit.OvertypeMode
Parameter infoCtrl+Shift+Spacebar [Text Editor, Workflow Designer]

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

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

or Shift+Insert
Edit.Paste
Peek definitionAlt+F12 [Text Editor]Edit.PeekDefinition
RedoCtrl+Y

or Shift+Alt+Backspace

or Ctrl+Shift+Z
Edit.Redo
ReplaceCtrl+HEdit.Replace
Select allCtrl+AEdit.SelectAll
Select current wordCtrl+W [Text Editor]Edit.SelectCurrentWord
Selection cancelEsc [Text Editor, Report Designer, Settings Designer, Windows Forms Designer, Managed Resources Editor]Edit.SelectionCancel
Surround withCtrl+K, Ctrl+S
(available only in Visual Studio 2019 and earlier)
Edit.SurroundWith
Tab leftShift+Tab [Text Editor, Report Designer, Windows Forms Editor]Edit.TabLeft
Toggle all outliningCtrl+M, Ctrl+L [Text Editor]Edit.ToggleAllOutlining
Toggle bookmarkCtrl+K, Ctrl+K [Text Editor]Edit.ToggleBookmark
Toggle completion modeCtrl+Alt+Space [Text Editor]Edit.ToggleCompletionMode
Toggle outlining expansionCtrl+M, Ctrl+M [Text Editor]Edit.ToggleOutliningExpansion
Uncomment selectionCtrl+K, Ctrl+U [Text Editor]Edit.UncommentSelection
UndoCtrl+Z

or Alt+Backspace
Edit.Undo
Word delete to endCtrl+Delete [Text Editor]Edit.WordDeleteToEnd
Word delete to startCtrl+Backspace [Text Editor]Edit.WordDeleteToStart
Back
Next
Previous articleKeyboard Short Cuts
Next articleGardening Mix
Vishal Bhandari is an admin, editor and writer of this portfolio. He writes about himself, his interests, hobbies, activities. He manages many articles about tech, finance, history and geopolitics on his portfolio.

LEAVE A REPLY

Please enter your comment!
Please enter your name here