visual studio code快捷键大全
Basic Editing
Key | Command | Command id |
---|---|---|
Ctrl+X | Cut line (empty selection) | editor.action.clipboardCutAction |
Ctrl+C | Copy line (empty selection) | editor.action.clipboardCopyAction |
Ctrl+Shift+K | Delete Line | editor.action.deleteLines |
Ctrl+Enter | Insert Line Below | editor.action.insertLineAfter |
Ctrl+Shift+Enter | Insert Line Above | editor.action.insertLineBefore |
Alt+Down | Move Line Down | editor.action.moveLinesDownAction |
Alt+Up | Move Line Up | editor.action.moveLinesUpAction |
Shift+Alt+Down | Copy Line Down | editor.action.copyLinesDownAction |
Shift+Alt+Up | Copy Line Up | editor.action.copyLinesUpAction |
Ctrl+D | Add Selection To Next Find Match | editor.action.addSelectionToNextFindMatch |
Ctrl+K Ctrl+D | Move Last Selection To Next Find Match | editor.action.moveSelectionToNextFindMatch |
Ctrl+U | Undo last cursor operation | cursorUndo |
Shift+Alt+I | Insert cursor at end of each line selected | editor.action.insertCursorAtEndOfEachLineSelected |
Ctrl+Shift+L | Select all occurrences of current selection | editor.action.selectHighlights |
Ctrl+F2 | Select all occurrences of current word | editor.action.changeAll |
Ctrl+I | Select current line | expandLineSelection |
Ctrl+Alt+Down | Insert Cursor Below | editor.action.insertCursorBelow |
Ctrl+Alt+Up | Insert Cursor Above | editor.action.insertCursorAbove |
Ctrl+Shift+\ | Jump to matching bracket | editor.action.jumpToBracket |
Ctrl+] | Indent Line | editor.action.indentLines |
Ctrl+[ | Outdent Line | editor.action.outdentLines |
Home | Go to Beginning of Line | cursorHome |
End | Go to End of Line | cursorEnd |
Ctrl+End | Go to End of File | cursorBottom |
Ctrl+Home | Go to Beginning of File | cursorTop |
Ctrl+Down | Scroll Line Down | scrollLineDown |
Ctrl+Up | Scroll Line Up | scrollLineUp |
Alt+PageDown | Scroll Page Down | scrollPageDown |
Alt+PageUp | Scroll Page Up | scrollPageUp |
Ctrl+Shift+[ | Fold (collapse) region | editor.fold |
Ctrl+Shift+] | Unfold (uncollapse) region | editor.unfold |
Ctrl+K Ctrl+[ | Fold (collapse) all subregions | editor.foldRecursively |
Ctrl+K Ctrl+] | Unfold (uncollapse) all subregions | editor.unfoldRecursively |
Ctrl+K Ctrl+0 | Fold (collapse) all regions | editor.foldAll |
Ctrl+K Ctrl+J | Unfold (uncollapse) all regions | editor.unfoldAll |
Ctrl+K Ctrl+C | Add Line Comment | editor.action.addCommentLine |
Ctrl+K Ctrl+U | Remove Line Comment | editor.action.removeCommentLine |
Ctrl+/ | Toggle Line Comment | editor.action.commentLine |
Shift+Alt+A | Toggle Block Comment | editor.action.blockComment |
Ctrl+F | Find | actions.find |
Ctrl+H | Replace | editor.action.startFindReplaceAction |
F3 | Find Next | editor.action.nextMatchFindAction |
Shift+F3 | Find Previous | editor.action.previousMatchFindAction |
Alt+Enter | Select All Occurences of Find Match | editor.action.selectAllMatches |
Alt+C | Toggle Find Case Sensitive | toggleFindCaseSensitive |
Alt+R | Toggle Find Regex | toggleFindRegex |
Alt+W | Toggle Find Whole Word | toggleFindWholeWord |
Ctrl+M | Toggle Use of Tab Key for Setting Focus | editor.action.toggleTabFocusMode |
unassigned Toggle | Render Whitespace | toggleRenderWhitespace |
Rich Languages Editing
Key | Command | Command id |
---|---|---|
Ctrl+Space | Trigger Suggest | editor.action.triggerSuggest |
Ctrl+Shift+Space | Trigger Parameter Hints | editor.action.triggerParameterHints |
Shift+Alt+F | Format Code | editor.action.format |
F12 | Go to Definition | editor.action.goToDeclaration |
Alt+F12 | Peek Definition | editor.action.previewDeclaration |
Ctrl+K F12 | Open Definition to the Side | editor.action.openDeclarationToTheSide |
Ctrl+. | Quick Fix | editor.action.quickFix |
Shift+F12 | Show References | editor.action.referenceSearch.trigger |
F2 | Rename Symbol | editor.action.rename |
Ctrl+Shift+. | Replace with Next Value | editor.action.inPlaceReplace.down |
Ctrl+Shift+, | Replace with Previous Value | editor.action.inPlaceReplace.up |
Shift+Alt+Right | Expand AST Select | editor.action.smartSelect.grow |
Shift+Alt+Left | Shrink AST Select | editor.action.smartSelect.shrink |
Ctrl+K Ctrl+X | Trim Trailing Whitespace | editor.action.trimTrailingWhitespace |
Ctrl+K M | Change Language Mode | workbench.action.editor.changeLanguageMode |
Navigation
Key | Command | Command id |
---|---|---|
Ctrl+T | Show All Symbols | workbench.action.showAllSymbols |
Ctrl+G | Go to Line… | workbench.action.gotoLine |
Ctrl+P | Go to File…, Quick Open | workbench.action.quickOpen |
Ctrl+Shift+O | Go to Symbol… | workbench.action.gotoSymbol |
Ctrl+Shift+M | Show Problems | workbench.actions.view.problems |
F8 | Go to Next Error or Warning | editor.action.marker.next |
Shift+F8 | Go to Previous Error or Warning | editor.action.marker.prev |
Ctrl+Shift+P | Show All Commands | workbench.action.showCommands |
Ctrl+Shift+Tab | Navigate Editor Group History | workbench.action.openPreviousRecentlyUsedEditorInGroup |
Alt+Left | Go Back | workbench.action.navigateBack |
Alt+Right | Go Forward | workbench.action.navigateForward |
Editor/Window Management
Key | Command | Command id |
---|---|---|
Ctrl+Shift+N | New Window | workbench.action.newWindow |
Ctrl+W | Close Window | workbench.action.closeWindow |
Ctrl+F4 | Close Editor | workbench.action.closeActiveEditor |
Ctrl+K F | Close Folder | workbench.action.closeFolder |
unassigned | Cycle Between Editor Groups | workbench.action.navigateEditorGroups |
Ctrl+\ | Split Editor | workbench.action.splitEditor |
Ctrl+1 | Focus into Left Editor Group | workbench.action.focusFirstEditorGroup |
Ctrl+2 | Focus into Side Editor Group | workbench.action.focusSecondEditorGroup |
Ctrl+3 | Focus into Right Editor Group | workbench.action.focusThirdEditorGroup |
Ctrl+K Ctrl+Left | Focus into Editor Group on the Left | workbench.action.focusPreviousGroup |
Ctrl+K Ctrl+Right | Focus into Editor Group on the Right | workbench.action.focusNextGroup |
Ctrl+Shift+PageUp | Move Editor Left | workbench.action.moveEditorLeftInGroup |
Ctrl+Shift+PageDown | Move Editor Right | workbench.action.moveEditorRightInGroup |
Ctrl+K Left | Move Active Editor Group Left | workbench.action.moveActiveEditorGroupLeft |
Ctrl+K Right | Move Active Editor Group Right | workbench.action.moveActiveEditorGroupRight |
File Management
Key | Command | Command id |
---|---|---|
Ctrl+N | New File | workbench.action.files.newUntitledFile |
Ctrl+O | Open File… | workbench.action.files.openFile |
Ctrl+S | Save | workbench.action.files.save |
unassigned | Save All | workbench.action.files.saveAll |
Ctrl+Shift+S | Save As… | workbench.action.files.saveAs |
Ctrl+F4 | Close | workbench.action.closeActiveEditor |
unassigned | Close Others | workbench.action.closeOtherEditors |
Ctrl+K W | Close Group | workbench.action.closeEditorsInGroup |
unassigned | Close Other Groups | workbench.action.closeEditorsInOtherGroups |
unassigned | Close Group to Left | workbench.action.closeEditorsToTheLeft |
unassigned | Close Group to Right | workbench.action.closeEditorsToTheRight |
Ctrl+K Ctrl+W | Close All | workbench.action.closeAllEditors |
Ctrl+Shift+T | Reopen Closed Editor | workbench.action.reopenClosedEditor |
Ctrl+K Enter | Keep Open | workbench.action.keepEditor |
Ctrl+Tab | Open Next | workbench.action.openNextRecentlyUsedEditorInGroup |
Ctrl+Shift+Tab | Open Previous | workbench.action.openPreviousRecentlyUsedEditorInGroup |
Ctrl+K P | Copy Path of Active File | workbench.action.files.copyPathOfActiveFile |
Ctrl+K R | Reveal Active File in Windows | workbench.action.files.revealActiveFileInWindows |
Ctrl+K O | Show Opened File in New Window | workbench.action.files.showOpenedFileInNewWindow |
unassigned | Compare Opened File With | workbench.files.action.compareFileWith |
Display
Key | Command | Command id |
---|---|---|
F11 | Toggle Full Screen | workbench.action.toggleFullScreen |
Ctrl+= | Zoom in | workbench.action.zoomIn |
Ctrl+- | Zoom out | workbench.action.zoomOut |
unassigned | Reset Zoom | workbench.action.zoomReset |
Ctrl+B | Toggle Sidebar Visibility | workbench.action.toggleSidebarVisibility |
Ctrl+Shift+D | Show Debug | workbench.view.debug |
Ctrl+Shift+E | Show Explorer / Toggle Focus | workbench.view.explorer |
Ctrl+Shift+G | Show Git | workbench.view.git |
Ctrl+Shift+F | Show Search | workbench.view.search |
Ctrl+Shift+H | Replace in Files | workbench.action.replaceInFiles |
Ctrl+Shift+X | Show Extensions | workbench.view.extensions |
Ctrl+Shift+J | Toggle Search Details | workbench.action.search.toggleQueryDetails |
Ctrl+Shift+C | Open New Command Prompt | workbench.action.terminal.openNativeConsole |
Ctrl+Shift+U | Show Output | workbench.action.output.toggleOutput |
Ctrl+Shift+V | Toggle Markdown Preview | markdown.showPreview |
Ctrl+K V | Open Preview to the Side | markdown.showPreviewToSide |
Ctrl+` | Toggle Integrated Terminal | workbench.action.terminal.toggleTerminal |
Preferences
Key | Command | Command id |
---|---|---|
unassigned | Open User Settings | workbench.action.openGlobalSettings |
unassigned | Open Workspace Settings | workbench.action.openWorkspaceSettings |
unassigned | Open Keyboard Shortcuts | workbench.action.openGlobalKeybindings |
unassigned | Open User Snippets | workbench.action.openSnippets |
unassigned | Select Color Theme | workbench.action.selectTheme |
unassigned | Configure Display Language | workbench.action.configureLocale |
Debug
Key | Command | Command id |
---|---|---|
F9 | Toggle Breakpoint | editor.debug.action.toggleBreakpoint |
F5 | Continue | workbench.action.debug.continue |
F5 | Pause | workbench.action.debug.start |
F11 | Step Into | workbench.action.debug.stepInto |
Shift+F11 | Step Out | workbench.action.debug.stepOut |
F10 | Step Over | workbench.action.debug.stepOver |
Shift+F5 | Stop | workbench.action.debug.stop |
Ctrl+K Ctrl+I | Show Hover | editor.action.showHover |
Tasks
Key | Command | Command id |
---|---|---|
Ctrl+Shift+B | Run Build Task | workbench.action.tasks.build |
unassigned | Run Test Task | workbench.action.tasks.test |
Extensions
Key | Command | Command id |
---|---|---|
unassigned | Install | Extension |
unassigned | Show Installed Extensions | workbench.extensions.action.showInstalledExtensions |
unassigned | Show Outdated Extensions | workbench.extensions.action.listOutdatedExtensions |
unassigned | Show Recommended Extensions | workbench.extensions.action.showRecommendedExtensions |
unassigned | Show Popular Extensions | workbench.extensions.action.showPopularExtensions |
快捷键详细信息
还没有评论,来说两句吧...