visual studio code快捷键大全

13 篇文章 0 订阅

Basic Editing

KeyCommandCommand id
Ctrl+XCut line (empty selection)editor.action.clipboardCutAction
Ctrl+CCopy line (empty selection)editor.action.clipboardCopyAction
Ctrl+Shift+KDelete Lineeditor.action.deleteLines
Ctrl+EnterInsert Line Beloweditor.action.insertLineAfter
Ctrl+Shift+EnterInsert Line Aboveeditor.action.insertLineBefore
Alt+DownMove Line Downeditor.action.moveLinesDownAction
Alt+UpMove Line Upeditor.action.moveLinesUpAction
Shift+Alt+DownCopy Line Downeditor.action.copyLinesDownAction
Shift+Alt+UpCopy Line Upeditor.action.copyLinesUpAction
Ctrl+DAdd Selection To Next Find Matcheditor.action.addSelectionToNextFindMatch
Ctrl+K Ctrl+DMove Last Selection To Next Find Matcheditor.action.moveSelectionToNextFindMatch
Ctrl+UUndo last cursor operationcursorUndo
Shift+Alt+IInsert cursor at end of each line selectededitor.action.insertCursorAtEndOfEachLineSelected
Ctrl+Shift+LSelect all occurrences of current selectioneditor.action.selectHighlights
Ctrl+F2Select all occurrences of current wordeditor.action.changeAll
Ctrl+ISelect current lineexpandLineSelection
Ctrl+Alt+DownInsert Cursor Beloweditor.action.insertCursorBelow
Ctrl+Alt+UpInsert Cursor Aboveeditor.action.insertCursorAbove
Ctrl+Shift+\Jump to matching bracketeditor.action.jumpToBracket
Ctrl+]Indent Lineeditor.action.indentLines
Ctrl+[Outdent Lineeditor.action.outdentLines
HomeGo to Beginning of LinecursorHome
EndGo to End of LinecursorEnd
Ctrl+EndGo to End of FilecursorBottom
Ctrl+HomeGo to Beginning of FilecursorTop
Ctrl+DownScroll Line DownscrollLineDown
Ctrl+UpScroll Line UpscrollLineUp
Alt+PageDownScroll Page DownscrollPageDown
Alt+PageUpScroll Page UpscrollPageUp
Ctrl+Shift+[Fold (collapse) regioneditor.fold
Ctrl+Shift+]Unfold (uncollapse) regioneditor.unfold
Ctrl+K Ctrl+[Fold (collapse) all subregionseditor.foldRecursively
Ctrl+K Ctrl+]Unfold (uncollapse) all subregionseditor.unfoldRecursively
Ctrl+K Ctrl+0Fold (collapse) all regionseditor.foldAll
Ctrl+K Ctrl+JUnfold (uncollapse) all regionseditor.unfoldAll
Ctrl+K Ctrl+CAdd Line Commenteditor.action.addCommentLine
Ctrl+K Ctrl+URemove Line Commenteditor.action.removeCommentLine
Ctrl+/Toggle Line Commenteditor.action.commentLine
Shift+Alt+AToggle Block Commenteditor.action.blockComment
Ctrl+FFindactions.find
Ctrl+HReplaceeditor.action.startFindReplaceAction
F3Find Nexteditor.action.nextMatchFindAction
Shift+F3Find Previouseditor.action.previousMatchFindAction
Alt+EnterSelect All Occurences of Find Matcheditor.action.selectAllMatches
Alt+CToggle Find Case SensitivetoggleFindCaseSensitive
Alt+RToggle Find RegextoggleFindRegex
Alt+WToggle Find Whole WordtoggleFindWholeWord
Ctrl+MToggle Use of Tab Key for Setting Focuseditor.action.toggleTabFocusMode
unassigned ToggleRender WhitespacetoggleRenderWhitespace

Rich Languages Editing

KeyCommandCommand id
Ctrl+SpaceTrigger Suggesteditor.action.triggerSuggest
Ctrl+Shift+SpaceTrigger Parameter Hintseditor.action.triggerParameterHints
Shift+Alt+FFormat Codeeditor.action.format
F12Go to Definitioneditor.action.goToDeclaration
Alt+F12Peek Definitioneditor.action.previewDeclaration
Ctrl+K F12Open Definition to the Sideeditor.action.openDeclarationToTheSide
Ctrl+.Quick Fixeditor.action.quickFix
Shift+F12Show Referenceseditor.action.referenceSearch.trigger
F2Rename Symboleditor.action.rename
Ctrl+Shift+.Replace with Next Valueeditor.action.inPlaceReplace.down
Ctrl+Shift+,Replace with Previous Valueeditor.action.inPlaceReplace.up
Shift+Alt+RightExpand AST Selecteditor.action.smartSelect.grow
Shift+Alt+LeftShrink AST Selecteditor.action.smartSelect.shrink
Ctrl+K Ctrl+XTrim Trailing Whitespaceeditor.action.trimTrailingWhitespace
Ctrl+K MChange Language Modeworkbench.action.editor.changeLanguageMode
KeyCommandCommand id
Ctrl+TShow All Symbolsworkbench.action.showAllSymbols
Ctrl+GGo to Line…workbench.action.gotoLine
Ctrl+PGo to File…, Quick Openworkbench.action.quickOpen
Ctrl+Shift+OGo to Symbol…workbench.action.gotoSymbol
Ctrl+Shift+MShow Problemsworkbench.actions.view.problems
F8Go to Next Error or Warningeditor.action.marker.next
Shift+F8Go to Previous Error or Warningeditor.action.marker.prev
Ctrl+Shift+PShow All Commandsworkbench.action.showCommands
Ctrl+Shift+TabNavigate Editor Group Historyworkbench.action.openPreviousRecentlyUsedEditorInGroup
Alt+LeftGo Backworkbench.action.navigateBack
Alt+RightGo Forwardworkbench.action.navigateForward

Editor/Window Management

KeyCommandCommand id
Ctrl+Shift+NNew Windowworkbench.action.newWindow
Ctrl+WClose Windowworkbench.action.closeWindow
Ctrl+F4Close Editorworkbench.action.closeActiveEditor
Ctrl+K FClose Folderworkbench.action.closeFolder
unassignedCycle Between Editor Groupsworkbench.action.navigateEditorGroups
Ctrl+\Split Editorworkbench.action.splitEditor
Ctrl+1Focus into Left Editor Groupworkbench.action.focusFirstEditorGroup
Ctrl+2Focus into Side Editor Groupworkbench.action.focusSecondEditorGroup
Ctrl+3Focus into Right Editor Groupworkbench.action.focusThirdEditorGroup
Ctrl+K Ctrl+LeftFocus into Editor Group on the Leftworkbench.action.focusPreviousGroup
Ctrl+K Ctrl+RightFocus into Editor Group on the Rightworkbench.action.focusNextGroup
Ctrl+Shift+PageUpMove Editor Leftworkbench.action.moveEditorLeftInGroup
Ctrl+Shift+PageDownMove Editor Rightworkbench.action.moveEditorRightInGroup
Ctrl+K LeftMove Active Editor Group Leftworkbench.action.moveActiveEditorGroupLeft
Ctrl+K RightMove Active Editor Group Rightworkbench.action.moveActiveEditorGroupRight

File Management

KeyCommandCommand id
Ctrl+NNew Fileworkbench.action.files.newUntitledFile
Ctrl+OOpen File…workbench.action.files.openFile
Ctrl+SSaveworkbench.action.files.save
unassignedSave Allworkbench.action.files.saveAll
Ctrl+Shift+SSave As…workbench.action.files.saveAs
Ctrl+F4Closeworkbench.action.closeActiveEditor
unassignedClose Othersworkbench.action.closeOtherEditors
Ctrl+K WClose Groupworkbench.action.closeEditorsInGroup
unassignedClose Other Groupsworkbench.action.closeEditorsInOtherGroups
unassignedClose Group to Leftworkbench.action.closeEditorsToTheLeft
unassignedClose Group to Rightworkbench.action.closeEditorsToTheRight
Ctrl+K Ctrl+WClose Allworkbench.action.closeAllEditors
Ctrl+Shift+TReopen Closed Editorworkbench.action.reopenClosedEditor
Ctrl+K EnterKeep Openworkbench.action.keepEditor
Ctrl+TabOpen Nextworkbench.action.openNextRecentlyUsedEditorInGroup
Ctrl+Shift+TabOpen Previousworkbench.action.openPreviousRecentlyUsedEditorInGroup
Ctrl+K PCopy Path of Active Fileworkbench.action.files.copyPathOfActiveFile
Ctrl+K RReveal Active File in Windowsworkbench.action.files.revealActiveFileInWindows
Ctrl+K OShow Opened File in New Windowworkbench.action.files.showOpenedFileInNewWindow
unassignedCompare Opened File Withworkbench.files.action.compareFileWith

Display

KeyCommandCommand id
F11Toggle Full Screenworkbench.action.toggleFullScreen
Ctrl+=Zoom inworkbench.action.zoomIn
Ctrl+-Zoom outworkbench.action.zoomOut
unassignedReset Zoomworkbench.action.zoomReset
Ctrl+BToggle Sidebar Visibilityworkbench.action.toggleSidebarVisibility
Ctrl+Shift+DShow Debugworkbench.view.debug
Ctrl+Shift+EShow Explorer / Toggle Focusworkbench.view.explorer
Ctrl+Shift+GShow Gitworkbench.view.git
Ctrl+Shift+FShow Searchworkbench.view.search
Ctrl+Shift+HReplace in Filesworkbench.action.replaceInFiles
Ctrl+Shift+XShow Extensionsworkbench.view.extensions
Ctrl+Shift+JToggle Search Detailsworkbench.action.search.toggleQueryDetails
Ctrl+Shift+COpen New Command Promptworkbench.action.terminal.openNativeConsole
Ctrl+Shift+UShow Outputworkbench.action.output.toggleOutput
Ctrl+Shift+VToggle Markdown Previewmarkdown.showPreview
Ctrl+K VOpen Preview to the Sidemarkdown.showPreviewToSide
Ctrl+`Toggle Integrated Terminalworkbench.action.terminal.toggleTerminal

Preferences

KeyCommandCommand id
unassignedOpen User Settingsworkbench.action.openGlobalSettings
unassignedOpen Workspace Settingsworkbench.action.openWorkspaceSettings
unassignedOpen Keyboard Shortcutsworkbench.action.openGlobalKeybindings
unassignedOpen User Snippetsworkbench.action.openSnippets
unassignedSelect Color Themeworkbench.action.selectTheme
unassignedConfigure Display Languageworkbench.action.configureLocale

Debug

KeyCommandCommand id
F9Toggle Breakpointeditor.debug.action.toggleBreakpoint
F5Continueworkbench.action.debug.continue
F5Pauseworkbench.action.debug.start
F11Step Intoworkbench.action.debug.stepInto
Shift+F11Step Outworkbench.action.debug.stepOut
F10Step Overworkbench.action.debug.stepOver
Shift+F5Stopworkbench.action.debug.stop
Ctrl+K Ctrl+IShow Hovereditor.action.showHover

Tasks

KeyCommandCommand id
Ctrl+Shift+BRun Build Taskworkbench.action.tasks.build
unassignedRun Test Taskworkbench.action.tasks.test

Extensions

KeyCommandCommand id
unassignedInstallExtension
unassignedShow Installed Extensionsworkbench.extensions.action.showInstalledExtensions
unassignedShow Outdated Extensionsworkbench.extensions.action.listOutdatedExtensions
unassignedShow Recommended Extensionsworkbench.extensions.action.showRecommendedExtensions
unassignedShow Popular Extensionsworkbench.extensions.action.showPopularExtensions


快捷键详细信息

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值