Movatterモバイル変換


[0]ホーム

URL:


Version 1.106 is now available! Read about the new features and fixes from October.

Dismiss this update

Default keyboard shortcuts reference

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

For a full list of keyboard shortcuts, use either of these options within VS Code:

  • SelectPreferences: Open Default Keyboard Shortcuts (JSON) in the Command Palette.
  • Open the Keyboard Shortcuts editor, and then selectShow System Keybindings in theMore Actions (...) menu.
Note

The following keys are rendered assuming a standard US keyboard layout. Get more information about using a differentkeyboard layout.

Basic Editing

CommandKeyCommand id
Cut line (empty selection)⌘X (Windows, LinuxCtrl+X)editor.action.clipboardCutAction
Copy line (empty selection)⌘C (Windows, LinuxCtrl+C)editor.action.clipboardCopyAction
Paste⌘V (Windows, LinuxCtrl+V)editor.action.clipboardPasteAction
Delete Line⇧⌘K (Windows, LinuxCtrl+Shift+K)editor.action.deleteLines
Insert Line Below⌘Enter (Windows, LinuxCtrl+Enter)editor.action.insertLineAfter
Insert Line Above⇧⌘Enter (Windows, LinuxCtrl+Shift+Enter)editor.action.insertLineBefore
Move Line Down⌥↓ (Windows, LinuxAlt+Down)editor.action.moveLinesDownAction
Move Line Up⌥↑ (Windows, LinuxAlt+Up)editor.action.moveLinesUpAction
Copy Line Down⇧⌥↓ (WindowsShift+Alt+Down, LinuxCtrl+Shift+Alt+Down)editor.action.copyLinesDownAction
Copy Line Up⇧⌥↑ (WindowsShift+Alt+Up, LinuxCtrl+Shift+Alt+Up)editor.action.copyLinesUpAction
Undo⌘Z (Windows, LinuxCtrl+Z)undo
Redo⇧⌘Z (Windows, LinuxCtrl+Y)redo
Add Selection To Next Find Match⌘D (Windows, LinuxCtrl+D)editor.action.addSelectionToNextFindMatch
Move Last Selection To Next Find Match⌘K ⌘D (Windows, LinuxCtrl+K Ctrl+D)editor.action.moveSelectionToNextFindMatch
Undo last cursor operation⌘U (Windows, LinuxCtrl+U)cursorUndo
Insert cursor at end of each line selected⇧⌥I (Windows, LinuxShift+Alt+I)editor.action.insertCursorAtEndOfEachLineSelected
Select all occurrences of current selection⇧⌘L (Windows, LinuxCtrl+Shift+L)editor.action.selectHighlights
Select all occurrences of current word⌘F2 (Windows, LinuxCtrl+F2)editor.action.changeAll
Select current line⌘L (Windows, LinuxCtrl+L)expandLineSelection
Insert Cursor Below⌥⌘↓ (WindowsCtrl+Alt+Down, LinuxShift+Alt+Down)editor.action.insertCursorBelow
Insert Cursor Above⌥⌘↑ (WindowsCtrl+Alt+Up, LinuxShift+Alt+Up)editor.action.insertCursorAbove
Jump to matching bracket⇧⌘\ (Windows, LinuxCtrl+Shift+\)editor.action.jumpToBracket
Indent Line⌘] (Windows, LinuxCtrl+])editor.action.indentLines
Outdent Line⌘[ (Windows, LinuxCtrl+[)editor.action.outdentLines
Go to Beginning of LineHomecursorHome
Go to End of LineEndcursorEnd
Go to End of File⌘↓ (Windows, LinuxCtrl+End)cursorBottom
Go to Beginning of File⌘↑ (Windows, LinuxCtrl+Home)cursorTop
Scroll Line Down⌃PageDown (Windows, LinuxCtrl+Down)scrollLineDown
Scroll Line Up⌃PageUp (Windows, LinuxCtrl+Up)scrollLineUp
Scroll Page Down⌘PageDown (Windows, LinuxAlt+PageDown)scrollPageDown
Scroll Page Up⌘PageUp (Windows, LinuxAlt+PageUp)scrollPageUp
Fold (collapse) region⌥⌘[ (Windows, LinuxCtrl+Shift+[)editor.fold
Unfold (uncollapse) region⌥⌘] (Windows, LinuxCtrl+Shift+])editor.unfold
Toggle Fold region⌘K ⌘L (Windows, LinuxCtrl+K Ctrl+L)editor.toggleFold
Fold (collapse) all subregions⌘K ⌘[ (Windows, LinuxCtrl+K Ctrl+[)editor.foldRecursively
Unfold (uncollapse) all subregions⌘K ⌘] (Windows, LinuxCtrl+K Ctrl+])editor.unfoldRecursively
Fold (collapse) all regions⌘K ⌘0 (Windows, LinuxCtrl+K Ctrl+0)editor.foldAll
Unfold (uncollapse) all regions⌘K ⌘J (Windows, LinuxCtrl+K Ctrl+J)editor.unfoldAll
Add Line Comment⌘K ⌘C (Windows, LinuxCtrl+K Ctrl+C)editor.action.addCommentLine
Remove Line Comment⌘K ⌘U (Windows, LinuxCtrl+K Ctrl+U)editor.action.removeCommentLine
Toggle Line Comment⌘/ (Windows, LinuxCtrl+/)editor.action.commentLine
Toggle Block Comment⇧⌥A (WindowsShift+Alt+A, LinuxCtrl+Shift+A)editor.action.blockComment
Find⌘F (Windows, LinuxCtrl+F)actions.find
Replace⌥⌘F (Windows, LinuxCtrl+H)editor.action.startFindReplaceAction
Find NextEntereditor.action.nextMatchFindAction
Find Previous⇧Enter (Windows, LinuxShift+Enter)editor.action.previousMatchFindAction
Select All Occurrences of Find Match⌥Enter (Windows, LinuxAlt+Enter)editor.action.selectAllMatches
Toggle Find Case Sensitive⌥⌘C (Windows, LinuxAlt+C)toggleFindCaseSensitive
Toggle Find Regex⌥⌘R (Windows, LinuxAlt+R)toggleFindRegex
Toggle Find Whole Word⌥⌘W (Windows, LinuxAlt+W)toggleFindWholeWord
Toggle Use of Tab Key for Setting Focus⌃⇧M (Windows, LinuxCtrl+M)editor.action.toggleTabFocusMode
Toggle Word Wrap⌥Z (Windows, LinuxAlt+Z)editor.action.toggleWordWrap

Rich Languages Editing

CommandKeyCommand id
Trigger Suggest⌃Space (Windows, LinuxCtrl+Space)editor.action.triggerSuggest
Trigger Parameter Hints⇧⌘Space (Windows, LinuxCtrl+Shift+Space)editor.action.triggerParameterHints
Format Document⇧⌥F (WindowsShift+Alt+F, LinuxCtrl+Shift+I)editor.action.formatDocument
Format Selection⌘K ⌘F (Windows, LinuxCtrl+K Ctrl+F)editor.action.formatSelection
Go to DefinitionF12editor.action.revealDefinition
Show Hover⌘K ⌘I (Windows, LinuxCtrl+K Ctrl+I)editor.action.showHover
Peek Definition⌥F12 (WindowsAlt+F12, LinuxCtrl+Shift+F10)editor.action.peekDefinition
Open Definition to the Side⌘K F12 (Windows, LinuxCtrl+K F12)editor.action.revealDefinitionAside
Quick Fix⌘. (Windows, LinuxCtrl+.)editor.action.quickFix
Go to References⇧F12 (Windows, LinuxShift+F12)editor.action.goToReferences
Rename SymbolF2editor.action.rename
Replace with Next Value⇧⌘. (Windows, LinuxCtrl+Shift+.)editor.action.inPlaceReplace.down
Replace with Previous Value⇧⌘, (Windows, LinuxCtrl+Shift+,)editor.action.inPlaceReplace.up
Expand AST Selection⌃⇧⌘→ (Windows, LinuxShift+Alt+Right)editor.action.smartSelect.expand
Shrink AST Selection⌃⇧⌘← (Windows, LinuxShift+Alt+Left)editor.action.smartSelect.shrink
Trim Trailing Whitespace⌘K ⌘X (Windows, LinuxCtrl+K Ctrl+X)editor.action.trimTrailingWhitespace
Change Language Mode⌘K M (Windows, LinuxCtrl+K M)workbench.action.editor.changeLanguageMode

Navigation

CommandKeyCommand id
Show All Symbols⌘T (Windows, LinuxCtrl+T)workbench.action.showAllSymbols
Go to Line...⌃G (Windows, LinuxCtrl+G)workbench.action.gotoLine
Go to File..., Quick Open⌘P (Windows, LinuxCtrl+P)workbench.action.quickOpen
Go to Symbol...⇧⌘O (Windows, LinuxCtrl+Shift+O)workbench.action.gotoSymbol
Show Problems⇧⌘M (Windows, LinuxCtrl+Shift+M)workbench.actions.view.problems
Go to Next Error or WarningF8editor.action.marker.nextInFiles
Go to Previous Error or Warning⇧F8 (Windows, LinuxShift+F8)editor.action.marker.prevInFiles
Show All Commands⇧⌘P (Windows, LinuxCtrl+Shift+P) orF1workbench.action.showCommands
Navigate Editor Group History⌃Tab (Windows, LinuxCtrl+Tab)workbench.action.quickOpenPreviousRecentlyUsedEditorInGroup
Go Back⌃- (WindowsAlt+Left, LinuxCtrl+Alt+-)workbench.action.navigateBack
Go back in Quick Input⌃- (WindowsAlt+Left, LinuxCtrl+Alt+-)workbench.action.quickInputBack
Go Forward⌃⇧- (WindowsAlt+Right, LinuxCtrl+Shift+-)workbench.action.navigateForward
Focus Breadcrumbs⇧⌘; (Windows, LinuxCtrl+Shift+;)breadcrumbs.focus
Focus and Select Breadcrumbs⇧⌘. (Windows, LinuxCtrl+Shift+.)breadcrumbs.focusAndSelect

Editor/Window Management

CommandKeyCommand id
New Window⇧⌘N (Windows, LinuxCtrl+Shift+N)workbench.action.newWindow
Close Window⌘W (Windows, LinuxAlt+F4)workbench.action.closeWindow
Close Editor⌘W (WindowsCtrl+F4, LinuxCtrl+W)workbench.action.closeActiveEditor
Close Folder⌘K F (Windows, LinuxCtrl+K F)workbench.action.closeFolder
Split Editor⌘\ (Windows, LinuxCtrl+\)workbench.action.splitEditor
Focus into First Editor Group⌘1 (Windows, LinuxCtrl+1)workbench.action.focusFirstEditorGroup
Focus into Second Editor Group⌘2 (Windows, LinuxCtrl+2)workbench.action.focusSecondEditorGroup
Focus into Third Editor Group⌘3 (Windows, LinuxCtrl+3)workbench.action.focusThirdEditorGroup
Focus into Editor Group on the Left⌘K ⌘← (Windows, LinuxCtrl+K Ctrl+Left)workbench.action.focusLeftGroup
Focus into Editor Group on the Right⌘K ⌘→ (Windows, LinuxCtrl+K Ctrl+Right)workbench.action.focusRightGroup
Move Editor Left⌘K ⇧⌘← (Windows, LinuxCtrl+Shift+PageUp)workbench.action.moveEditorLeftInGroup
Move Editor Right⌘K ⇧⌘→ (Windows, LinuxCtrl+Shift+PageDown)workbench.action.moveEditorRightInGroup
Move Active Editor Group Left⌘K ← (Windows, LinuxCtrl+K Left)workbench.action.moveActiveEditorGroupLeft
Move Active Editor Group Right⌘K → (Windows, LinuxCtrl+K Right)workbench.action.moveActiveEditorGroupRight
Move Editor into Next Group⌃⌘→ (Windows, LinuxCtrl+Alt+Right)workbench.action.moveEditorToNextGroup
Move Editor into Previous Group⌃⌘← (Windows, LinuxCtrl+Alt+Left)workbench.action.moveEditorToPreviousGroup

File Management

CommandKeyCommand id
New File⌘N (Windows, LinuxCtrl+N)workbench.action.files.newUntitledFile
Open File...⌘O (Windows, LinuxCtrl+O)workbench.action.files.openFile
Save⌘S (Windows, LinuxCtrl+S)workbench.action.files.save
Save All⌥⌘S (WindowsCtrl+K S, Linux)saveAll
Save As...⇧⌘S (Windows, LinuxCtrl+Shift+S)workbench.action.files.saveAs
Close⌘W (WindowsCtrl+F4, LinuxCtrl+W)workbench.action.closeActiveEditor
Close Group⌘K W (Windows, LinuxCtrl+K W)workbench.action.closeEditorsInGroup
Close All⌘K ⌘W (Windows, LinuxCtrl+K Ctrl+W)workbench.action.closeAllEditors
Reopen Closed Editor⇧⌘T (Windows, LinuxCtrl+Shift+T)workbench.action.reopenClosedEditor
Keep Open⌘K Enter (Windows, LinuxCtrl+K Enter)workbench.action.keepEditor
Copy Path of Active File⌘K P (Windows, LinuxCtrl+K P)workbench.action.files.copyPathOfActiveFile
Reveal Active File in Windows⌘K R (Windows, LinuxCtrl+K R)workbench.action.files.revealActiveFileInWindows

Display

CommandKeyCommand id
Toggle Full Screen⌃⌘F (Windows, LinuxF11)workbench.action.toggleFullScreen
Toggle Zen Mode⌘K Z (Windows, LinuxCtrl+K Z)workbench.action.toggleZenMode
Leave Zen ModeEscape Escapeworkbench.action.exitZenMode
Zoom in⌘= (Windows, LinuxCtrl+=)workbench.action.zoomIn
Zoom out⌘- (Windows, LinuxCtrl+-)workbench.action.zoomOut
Reset Zoom⌘Numpad0 (Windows, LinuxCtrl+Numpad0)workbench.action.zoomReset
Toggle Sidebar Visibility⌘B (Windows, LinuxCtrl+B)workbench.action.toggleSidebarVisibility
Show Explorer / Toggle Focus⇧⌘E (Windows, LinuxCtrl+Shift+E)workbench.view.explorer
Show Search⇧⌘F (Windows, LinuxCtrl+Shift+F)workbench.view.search
Show Source Control⌃⇧G (Windows, LinuxCtrl+Shift+G)workbench.view.scm
Show Run⇧⌘D (Windows, LinuxCtrl+Shift+D)workbench.view.debug
Show Extensions⇧⌘X (Windows, LinuxCtrl+Shift+X)workbench.view.extensions
Show Output⇧⌘U (WindowsCtrl+Shift+U, LinuxCtrl+K Ctrl+H)workbench.action.output.toggleOutput
Quick Open View⌃Q (WindowsCtrl+Q, Linux)workbench.action.quickOpenView
Open New Command Prompt⇧⌘C (Windows, LinuxCtrl+Shift+C)workbench.action.terminal.openNativeConsole
Toggle Markdown Preview⇧⌘V (Windows, LinuxCtrl+Shift+V)markdown.showPreview
Open Preview to the Side⌘K V (Windows, LinuxCtrl+K V)markdown.showPreviewToSide
Toggle Integrated Terminal⌃` (Windows, LinuxCtrl+`)workbench.action.terminal.toggleTerminal

Search

CommandKeyCommand id
Show Search⇧⌘F (Windows, LinuxCtrl+Shift+F)workbench.view.search
Replace in Files⇧⌘H (Windows, LinuxCtrl+Shift+H)workbench.action.replaceInFiles
Toggle Match Case⌥⌘C (Windows, LinuxAlt+C)toggleSearchCaseSensitive
Toggle Match Whole Word⌥⌘W (Windows, LinuxAlt+W)toggleSearchWholeWord
Toggle Use Regular Expression⌥⌘R (Windows, LinuxAlt+R)toggleSearchRegex
Toggle Search Details⇧⌘J (Windows, LinuxCtrl+Shift+J)workbench.action.search.toggleQueryDetails
Focus Next Search ResultF4search.action.focusNextSearchResult
Focus Previous Search Result⇧F4 (Windows, LinuxShift+F4)search.action.focusPreviousSearchResult
Show Next Search Term (Windows, LinuxDown)history.showNext
Show Previous Search Term (Windows, LinuxUp)history.showPrevious

Search Editor

CommandKeyCommand id
Open Results In Editor⌘Enter (Windows, LinuxAlt+Enter)search.action.openInEditor
Focus Search Editor InputEscapesearch.action.focusQueryEditorWidget
Search Again⇧⌘R (Windows, LinuxCtrl+Shift+R)rerunSearchEditorSearch
Delete File Results⇧⌘Backspace (Windows, LinuxCtrl+Shift+Backspace)search.searchEditor.action.deleteFileResults

Preferences

CommandKeyCommand id
Open Settings⌘, (Windows, LinuxCtrl+,)workbench.action.openSettings
Open Keyboard Shortcuts⌘K ⌘S (Windows, LinuxCtrl+K Ctrl+S)workbench.action.openGlobalKeybindings
Select Color Theme⌘K ⌘T (Windows, LinuxCtrl+K Ctrl+T)workbench.action.selectTheme

Chat

CommandKeyCommand id
Open Chat view⌃⌘I (Windows, LinuxCtrl+Alt+I)workbench.action.chat.open
Open chat in agent mode⇧⌘I (WindowsCtrl+Shift+I, LinuxCtrl+Shift+Alt+I)workbench.action.chat.openagent
Open editor inline chat⌘I (Windows, LinuxCtrl+I)inlineChat.start
Open terminal inline chat⌘I (Windows, LinuxCtrl+I)workbench.action.terminal.chat.start
Open quick chat⇧⌥⌘L (Windows, LinuxCtrl+Shift+Alt+L)workbench.action.quickchat.toggle
Open agent picker⌘. (Windows, LinuxCtrl+.)workbench.action.chat.openModePicker
Open language model picker⌥⌘. (Windows, LinuxCtrl+Alt+.)workbench.action.chat.openModelPicker
New chat session⌘N (Windows, LinuxCtrl+N)workbench.action.chat.newChat
Accept inline suggestionTabeditor.action.inlineSuggest.commit

Debug

CommandKeyCommand id
Toggle BreakpointF9editor.debug.action.toggleBreakpoint
StartF5workbench.action.debug.start
ContinueF5workbench.action.debug.continue
Start (without debugging)⌃F5 (Windows, LinuxCtrl+F5)workbench.action.debug.run
PauseF6workbench.action.debug.pause
Step IntoF11workbench.action.debug.stepInto

Tasks

CommandKeyCommand id
Run Build Task⇧⌘B (Windows, LinuxCtrl+Shift+B)workbench.action.tasks.build

Related resources

11/12/2025

    [8]ページ先頭

    ©2009-2025 Movatter.jp