본문으로 건너뛰기

Default keyboard shortcuts reference

VS Code comes with a set of default keyboard shortcuts. This article lists the default keyboard shortcuts in VS Code.

You can also view the default shortcuts in the product:

  • Open the Keyboard Shortcuts editor, and then select Show System Keybindings in the More Actions (...) menu.
  • Select Preferences: Open Default Keyboard Shortcuts (JSON) in the Command Palette.

[!NOTE] The following keys are rendered assuming a standard US keyboard layout. Get more information about using a different keyboard layout.

Some commands included below do not have default keyboard shortcuts and so are displayed as kbstyle(unassigned) but you can assign your own keyboard shortcuts.

Basic Editing

CommandKeyCommand id
Cut line (empty selection)kb(editor.action.clipboardCutAction)editor.action.clipboardCutAction
Copy line (empty selection)kb(editor.action.clipboardCopyAction)editor.action.clipboardCopyAction
Pastekb(editor.action.clipboardPasteAction)editor.action.clipboardPasteAction
Delete Linekb(editor.action.deleteLines)editor.action.deleteLines
Insert Line Belowkb(editor.action.insertLineAfter)editor.action.insertLineAfter
Insert Line Abovekb(editor.action.insertLineBefore)editor.action.insertLineBefore
Move Line Downkb(editor.action.moveLinesDownAction)editor.action.moveLinesDownAction
Move Line Upkb(editor.action.moveLinesUpAction)editor.action.moveLinesUpAction
Copy Line Downkb(editor.action.copyLinesDownAction)editor.action.copyLinesDownAction
Copy Line Upkb(editor.action.copyLinesUpAction)editor.action.copyLinesUpAction
Undokb(undo)undo
Redokb(redo)redo
Add Selection To Next Find Matchkb(editor.action.addSelectionToNextFindMatch)editor.action.addSelectionToNextFindMatch
Move Last Selection To Next Find Matchkb(editor.action.moveSelectionToNextFindMatch)editor.action.moveSelectionToNextFindMatch
Undo last cursor operationkb(cursorUndo)cursorUndo
Insert cursor at end of each line selectedkb(editor.action.insertCursorAtEndOfEachLineSelected)editor.action.insertCursorAtEndOfEachLineSelected
Select all occurrences of current selectionkb(editor.action.selectHighlights)editor.action.selectHighlights
Select all occurrences of current wordkb(editor.action.changeAll)editor.action.changeAll
Select current linekb(expandLineSelection)expandLineSelection
Insert Cursor Belowkb(editor.action.insertCursorBelow)editor.action.insertCursorBelow
Insert Cursor Abovekb(editor.action.insertCursorAbove)editor.action.insertCursorAbove
Jump to matching bracketkb(editor.action.jumpToBracket)editor.action.jumpToBracket
Indent Linekb(editor.action.indentLines)editor.action.indentLines
Outdent Linekb(editor.action.outdentLines)editor.action.outdentLines
Go to Beginning of Linekb(cursorHome)cursorHome
Go to End of Linekb(cursorEnd)cursorEnd
Go to End of Filekb(cursorBottom)cursorBottom
Go to Beginning of Filekb(cursorTop)cursorTop
Scroll Line Downkb(scrollLineDown)scrollLineDown
Scroll Line Upkb(scrollLineUp)scrollLineUp
Scroll Page Downkb(scrollPageDown)scrollPageDown
Scroll Page Upkb(scrollPageUp)scrollPageUp
Fold (collapse) regionkb(editor.fold)editor.fold
Unfold (uncollapse) regionkb(editor.unfold)editor.unfold
Toggle Fold regionkb(editor.toggleFold)editor.toggleFold
Fold (collapse) all subregionskb(editor.foldRecursively)editor.foldRecursively
Unfold (uncollapse) all subregionskb(editor.unfoldRecursively)editor.unfoldRecursively
Fold (collapse) all regionskb(editor.foldAll)editor.foldAll
Unfold (uncollapse) all regionskb(editor.unfoldAll)editor.unfoldAll
Add Line Commentkb(editor.action.addCommentLine)editor.action.addCommentLine
Remove Line Commentkb(editor.action.removeCommentLine)editor.action.removeCommentLine
Toggle Line Commentkb(editor.action.commentLine)editor.action.commentLine
Toggle Block Commentkb(editor.action.blockComment)editor.action.blockComment
Findkb(actions.find)actions.find
Replacekb(editor.action.startFindReplaceAction)editor.action.startFindReplaceAction
Find Nextkb(editor.action.nextMatchFindAction)editor.action.nextMatchFindAction
Find Previouskb(editor.action.previousMatchFindAction)editor.action.previousMatchFindAction
Select All Occurrences of Find Matchkb(editor.action.selectAllMatches)editor.action.selectAllMatches
Toggle Find Case Sensitivekb(toggleFindCaseSensitive)toggleFindCaseSensitive
Toggle Find Regexkb(toggleFindRegex)toggleFindRegex
Toggle Find Whole Wordkb(toggleFindWholeWord)toggleFindWholeWord
Toggle Use of Tab Key for Setting Focuskb(editor.action.toggleTabFocusMode)editor.action.toggleTabFocusMode
Toggle Render Whitespacekb(toggleRenderWhitespace)toggleRenderWhitespace
Toggle Word Wrapkb(editor.action.toggleWordWrap)editor.action.toggleWordWrap

Rich Languages Editing

CommandKeyCommand id
Trigger Suggestkb(editor.action.triggerSuggest)editor.action.triggerSuggest
Trigger Parameter Hintskb(editor.action.triggerParameterHints)editor.action.triggerParameterHints
Format Documentkb(editor.action.formatDocument)editor.action.formatDocument
Format Selectionkb(editor.action.formatSelection)editor.action.formatSelection
Go to Definitionkb(editor.action.revealDefinition)editor.action.revealDefinition
Show Hoverkb(editor.action.showHover)editor.action.showHover
Peek Definitionkb(editor.action.peekDefinition)editor.action.peekDefinition
Open Definition to the Sidekb(editor.action.revealDefinitionAside)editor.action.revealDefinitionAside
Quick Fixkb(editor.action.quickFix)editor.action.quickFix
Go to Referenceskb(editor.action.goToReferences)editor.action.goToReferences
Rename Symbolkb(editor.action.rename)editor.action.rename
Replace with Next Valuekb(editor.action.inPlaceReplace.down)editor.action.inPlaceReplace.down
Replace with Previous Valuekb(editor.action.inPlaceReplace.up)editor.action.inPlaceReplace.up
Expand AST Selectionkb(editor.action.smartSelect.expand)editor.action.smartSelect.expand
Shrink AST Selectionkb(editor.action.smartSelect.shrink)editor.action.smartSelect.shrink
Trim Trailing Whitespacekb(editor.action.trimTrailingWhitespace)editor.action.trimTrailingWhitespace
Change Language Modekb(workbench.action.editor.changeLanguageMode)workbench.action.editor.changeLanguageMode
CommandKeyCommand id
Show All Symbolskb(workbench.action.showAllSymbols)workbench.action.showAllSymbols
Go to Line...kb(workbench.action.gotoLine)workbench.action.gotoLine
Go to File..., Quick Openkb(workbench.action.quickOpen)workbench.action.quickOpen
Go to Symbol...kb(workbench.action.gotoSymbol)workbench.action.gotoSymbol
Show Problemskb(workbench.actions.view.problems)workbench.actions.view.problems
Go to Next Error or Warningkb(editor.action.marker.nextInFiles)editor.action.marker.nextInFiles
Go to Previous Error or Warningkb(editor.action.marker.prevInFiles)editor.action.marker.prevInFiles
Show All Commandskb(workbench.action.showCommands) or kbstyle(F1)workbench.action.showCommands
Navigate Editor Group Historykb(workbench.action.quickOpenPreviousRecentlyUsedEditorInGroup)workbench.action.quickOpenPreviousRecentlyUsedEditorInGroup
Go Backkb(workbench.action.navigateBack)workbench.action.navigateBack
Go back in Quick Inputkb(workbench.action.quickInputBack)workbench.action.quickInputBack
Go Forwardkb(workbench.action.navigateForward)workbench.action.navigateForward
Focus Breadcrumbskb(breadcrumbs.focus)breadcrumbs.focus
Focus and Select Breadcrumbskb(breadcrumbs.focusAndSelect)breadcrumbs.focusAndSelect

Editor/Window Management

CommandKeyCommand id
New Windowkb(workbench.action.newWindow)workbench.action.newWindow
Close Windowkb(workbench.action.closeWindow)workbench.action.closeWindow
Close Editorkb(workbench.action.closeActiveEditor)workbench.action.closeActiveEditor
Close Folderkb(workbench.action.closeFolder)workbench.action.closeFolder
Cycle Between Editor Groupskb(workbench.action.navigateEditorGroups)workbench.action.navigateEditorGroups
Split Editorkb(workbench.action.splitEditor)workbench.action.splitEditor
Focus into First Editor Groupkb(workbench.action.focusFirstEditorGroup)workbench.action.focusFirstEditorGroup
Focus into Second Editor Groupkb(workbench.action.focusSecondEditorGroup)workbench.action.focusSecondEditorGroup
Focus into Third Editor Groupkb(workbench.action.focusThirdEditorGroup)workbench.action.focusThirdEditorGroup
Focus into Editor Group on the Leftkb(workbench.action.focusPreviousGroup)workbench.action.focusPreviousGroup
Focus into Editor Group on the Rightkb(workbench.action.focusNextGroup)workbench.action.focusNextGroup
Move Editor Leftkb(workbench.action.moveEditorLeftInGroup)workbench.action.moveEditorLeftInGroup
Move Editor Rightkb(workbench.action.moveEditorRightInGroup)workbench.action.moveEditorRightInGroup
Move Active Editor Group Leftkb(workbench.action.moveActiveEditorGroupLeft)workbench.action.moveActiveEditorGroupLeft
Move Active Editor Group Rightkb(workbench.action.moveActiveEditorGroupRight)workbench.action.moveActiveEditorGroupRight
Move Editor into Next Groupkb(workbench.action.moveEditorToNextGroup)workbench.action.moveEditorToNextGroup
Move Editor into Previous Groupkb(workbench.action.moveEditorToPreviousGroup)workbench.action.moveEditorToPreviousGroup

File Management

CommandKeyCommand id
New Filekb(workbench.action.files.newUntitledFile)workbench.action.files.newUntitledFile
Open File...kb(workbench.action.files.openFile)workbench.action.files.openFile
Savekb(workbench.action.files.save)workbench.action.files.save
Save Allkb(saveAll)saveAll
Save As...kb(workbench.action.files.saveAs)workbench.action.files.saveAs
Closekb(workbench.action.closeActiveEditor)workbench.action.closeActiveEditor
Close Otherskb(workbench.action.closeOtherEditors)workbench.action.closeOtherEditors
Close Groupkb(workbench.action.closeEditorsInGroup)workbench.action.closeEditorsInGroup
Close Other Groupskb(workbench.action.closeEditorsInOtherGroups)workbench.action.closeEditorsInOtherGroups
Close Group to Leftkb(workbench.action.closeEditorsToTheLeft)workbench.action.closeEditorsToTheLeft
Close Group to Rightkb(workbench.action.closeEditorsToTheRight)workbench.action.closeEditorsToTheRight
Close Allkb(workbench.action.closeAllEditors)workbench.action.closeAllEditors
Reopen Closed Editorkb(workbench.action.reopenClosedEditor)workbench.action.reopenClosedEditor
Keep Openkb(workbench.action.keepEditor)workbench.action.keepEditor
Copy Path of Active Filekb(workbench.action.files.copyPathOfActiveFile)workbench.action.files.copyPathOfActiveFile
Reveal Active File in Windowskb(workbench.action.files.revealActiveFileInWindows)workbench.action.files.revealActiveFileInWindows
Show Opened File in New Windowkb(workbench.action.files.showOpenedFileInNewWindow)workbench.action.files.showOpenedFileInNewWindow
Compare Opened File Withkb(workbench.files.action.compareFileWith)workbench.files.action.compareFileWith

Display

CommandKeyCommand id
Toggle Full Screenkb(workbench.action.toggleFullScreen)workbench.action.toggleFullScreen
Toggle Zen Modekb(workbench.action.toggleZenMode)workbench.action.toggleZenMode
Leave Zen Modekb(workbench.action.exitZenMode)workbench.action.exitZenMode
Zoom inkb(workbench.action.zoomIn)workbench.action.zoomIn
Zoom outkb(workbench.action.zoomOut)workbench.action.zoomOut
Reset Zoomkb(workbench.action.zoomReset)workbench.action.zoomReset
Toggle Sidebar Visibilitykb(workbench.action.toggleSidebarVisibility)workbench.action.toggleSidebarVisibility
Show Explorer / Toggle Focuskb(workbench.view.explorer)workbench.view.explorer
Show Searchkb(workbench.view.search)workbench.view.search
Show Source Controlkb(workbench.view.scm)workbench.view.scm
Show Runkb(workbench.view.debug)workbench.view.debug
Show Extensionskb(workbench.view.extensions)workbench.view.extensions
Show Outputkb(workbench.action.output.toggleOutput)workbench.action.output.toggleOutput
Quick Open Viewkb(workbench.action.quickOpenView)workbench.action.quickOpenView
Open New Command Promptkb(workbench.action.terminal.openNativeConsole)workbench.action.terminal.openNativeConsole
Toggle Markdown Previewkb(markdown.showPreview)markdown.showPreview
Open Preview to the Sidekb(markdown.showPreviewToSide)markdown.showPreviewToSide
Toggle Integrated Terminalkb(workbench.action.terminal.toggleTerminal)workbench.action.terminal.toggleTerminal
CommandKeyCommand id
Show Searchkb(workbench.view.search)workbench.view.search
Replace in Fileskb(workbench.action.replaceInFiles)workbench.action.replaceInFiles
Toggle Match Casekb(toggleSearchCaseSensitive)toggleSearchCaseSensitive
Toggle Match Whole Wordkb(toggleSearchWholeWord)toggleSearchWholeWord
Toggle Use Regular Expressionkb(toggleSearchRegex)toggleSearchRegex
Toggle Search Detailskb(workbench.action.search.toggleQueryDetails)workbench.action.search.toggleQueryDetails
Focus Next Search Resultkb(search.action.focusNextSearchResult)search.action.focusNextSearchResult
Focus Previous Search Resultkb(search.action.focusPreviousSearchResult)search.action.focusPreviousSearchResult
Show Next Search Termkb(history.showNext)history.showNext
Show Previous Search Termkb(history.showPrevious)history.showPrevious

Search Editor

CommandKeyCommand id
Open Results In Editorkb(search.action.openInEditor)search.action.openInEditor
Focus Search Editor Inputkb(search.action.focusQueryEditorWidget)search.action.focusQueryEditorWidget
Search Againkb(rerunSearchEditorSearch)rerunSearchEditorSearch
Delete File Resultskb(search.searchEditor.action.deleteFileResults)search.searchEditor.action.deleteFileResults

Preferences

CommandKeyCommand id
Open Settingskb(workbench.action.openSettings)workbench.action.openSettings
Open Workspace Settingskb(workbench.action.openWorkspaceSettings)workbench.action.openWorkspaceSettings
Open Keyboard Shortcutskb(workbench.action.openGlobalKeybindings)workbench.action.openGlobalKeybindings
Open User Snippetskb(workbench.action.openSnippets)workbench.action.openSnippets
Select Color Themekb(workbench.action.selectTheme)workbench.action.selectTheme
Configure Display Languagekb(workbench.action.configureLocale)workbench.action.configureLocale

Debug

CommandKeyCommand id
Toggle Breakpointkb(editor.debug.action.toggleBreakpoint)editor.debug.action.toggleBreakpoint
Startkb(workbench.action.debug.start)workbench.action.debug.start
Continuekb(workbench.action.debug.continue)workbench.action.debug.continue
Start (without debugging)kb(workbench.action.debug.run)workbench.action.debug.run
Pausekb(workbench.action.debug.pause)workbench.action.debug.pause
Step Intokb(workbench.action.debug.stepInto)workbench.action.debug.stepInto

Tasks

CommandKeyCommand id
Run Build Taskkb(workbench.action.tasks.build)workbench.action.tasks.build
Run Test Taskkb(workbench.action.tasks.test)workbench.action.tasks.test

Extensions

CommandKeyCommand id
Install Extensionkb(workbench.extensions.action.installExtension)workbench.extensions.action.installExtension
Show Installed Extensionskb(workbench.extensions.action.showInstalledExtensions)workbench.extensions.action.showInstalledExtensions
Show Outdated Extensionskb(workbench.extensions.action.listOutdatedExtensions)workbench.extensions.action.listOutdatedExtensions
Show Recommended Extensionskb(workbench.extensions.action.showRecommendedExtensions)workbench.extensions.action.showRecommendedExtensions
Show Popular Extensionskb(workbench.extensions.action.showPopularExtensions)workbench.extensions.action.showPopularExtensions
Update All Extensionskb(workbench.extensions.action.updateAllExtensions)workbench.extensions.action.updateAllExtensions