Tổng hợp phím tắt của Visual Studio Code
Mình mới sử dụng VS Code của Microsoft được vài tuần, cảm thấy cũng khá thích - trừ cái việc nó hay chậm chậm. Lý do cũng có thể dễ lý giải là do nó được viết bằng Nodejs, chạy trên khung V8 của Chrome. Một cách tiếp cận phải nói là khá là hay, giúp sản phẩm nhanh chóng đến tay người dùng, thứ 2 là tính đa nền tảng của nó.Mình xin tổng hợp lại một số phím tắt hay, hay dùng của VS Code.Shortcuts - Basic EditingKeyCommandCommand idCtrl+Shift+KDelete Lineeditor.action.deleteLinesCtrl+EnterInsert Line Beloweditor.action.insertLineAfterCtrl+Shift+EnterInsert Line Aboveeditor.action.insertLineBeforeCtrl+DownMove Line Downeditor.action.moveLinesDownActionCtrl+UpMove Line Upeditor.action.moveLinesUpActionCtrl+Shift+Alt+DownCopy Line Downeditor.action.copyLinesDownActionCtrl+Shift+Alt+UpCopy Line Upeditor.action.copyLinesUpActionCtrl+DAdd Selection To Next Find Matcheditor.action.addSelectionToNextFindMatchCtrl+K Ctrl+DMove Last Selection To Next Find Matcheditor.action.moveSelectionToNextFindMatchCtrl+UUndo last cursor operationcursorUndoCtrl+Shift+LSelect all occurrences of current selectioneditor.action.selectHighlightsCtrl+F2Select all occurrences of current wordeditor.action.changeAllCtrl+Meta+DownInsert Cursor Beloweditor.action.insertCursorBelowCtrl+Meta+UpInsert Cursor Aboveeditor.action.insertCursorAboveCtrl+Shift+]Jump to matching bracketeditor.action.jumpToBracketCtrl+]Indent Lineeditor.action.indentLinesCtrl+[Outdent Lineeditor.action.outdentLinesHomeGo to Beginning of LinecursorHomeEndGo to End of LinecursorEndCtrl+EndGo to End of FilecursorBottomCtrl+HomeGo to Beginning of FilecursorTopCtrl+K Ctrl+CAdd Line Commenteditor.action.addCommentLineCtrl+K Ctrl+URemove Line Commenteditor.action.removeCommentLineCtrl+/Toggle Line Commenteditor.action.commentLineCtrl+Shift+AToggle Block Commenteditor.action.blockCommentCtrl+FFindactions.findCtrl+HReplaceeditor.action.startFindReplaceActionF3Find Nexteditor.action.nextMatchFindActionShift+F3Find Previouseditor.action.previousMatchFindActionCtrl+MToggle Use of Tab Key for Setting Focuseditor.action.toggleTabFocusModeShortcuts - Rich Languages EditingKeyCommandCommand idCtrl+SpaceTrigger Suggesteditor.action.triggerSuggestCtrl+Shift+IFormat Codeeditor.action.formatF12Go to Definitioneditor.action.goToDeclarationCtrl+Shift+F10Peek Definitioneditor.action.previewDeclarationCtrl+.Quick Fixeditor.action.quickFixShift+F12Show Referenceseditor.action.referenceSearch.triggerF2Rename Symboleditor.action.renameCtrl+Shift+.Replace with Next Valueeditor.action.inPlaceReplace.downCtrl+Shift+,Replace with Previous Valueeditor.action.inPlaceReplace.upShift+Alt+RightExpand AST Selecteditor.action.smartSelect.growShift+Alt+LeftShrink AST Selecteditor.action.smartSelect.shrinkShortcuts - NavigationKeyCommandCommand idCtrl+TShow All Symbolsworkbench.action.showAllSymbolsCtrl+GGo to Line...workbench.action.gotoLineCtrl+PGo to File...workbench.action.quickOpenCtrl+Shift+OGo to Symbol...workbench.action.gotoSymbolCtrl+Shift+MShow Errors and Warningsworkbench.action.showErrorsWarningsF8Go to Next Error or Warningeditor.action.marker.nextShift+F8Go to Previous Error or Warningeditor.action.marker.prevCtrl+Shift+PShow All Commandsworkbench.action.showCommandsCtrl+TabNavigate Historyworkbench.action.openPreviousEditorCtrl+Alt+-Go Backworkbench.action.navigateBackCtrl+Shift+-Go Forwardworkbench.action.navigateForwardShortcuts - Editor/Window ManagementKeyCommandCommand idCtrl+Shift+NNew Windowworkbench.action.newWindowCtrl+Shift+WClose Windowworkbench.action.closeWindowCtrl+WClose Editorworkbench.action.closeActiveEditorCtrl+`Cycle Between Opened Editorsworkbench.action.cycleEditorCtrl+</span>Split Editorworkbench.action.splitEditorCtrl+1Focus into Left Hand Editorworkbench.action.focusFirstEditorCtrl+2Focus into Side Editorworkbench.action.focusSecondEditorCtrl+3Focus into Right Hand Editorworkbench.action.focusThirdEditorCtrl+Shift+Alt+LeftFocus into Next Editor on the Leftworkbench.action.focusLeftEditorCtrl+Shift+Alt+RightFocus into Next Editor on the Rightworkbench.action.focusRightEditorShortcuts - File ManagementKeyCommandCommand idCtrl+NNew Fileworkbench.action.files.newUntitledFileCtrl+OOpen File...workbench.action.files.openFileCtrl+SSaveworkbench.action.files.saveunassignedSave Allworkbench.action.files.saveAllCtrl+Shift+SSave As...workbench.action.files.saveAsShortcuts - DisplayKeyCommandCommand idF11Toggle Full Screenworkbench.action.toggleFullScreenCtrl+=Zoom inworkbench.action.zoomInCtrl+-Zoom outworkbench.action.zoomOutCtrl+BToggle Sidebar Visibilityworkbench.action.toggleSidebarVisibilityCtrl+Shift+DShow Debugworkbench.view.debugCtrl+Shift+EShow Explorerworkbench.view.explorerCtrl+Shift+FShow Searchworkbench.view.searchCtrl+Shift+JToggle Search Detailsworkbench.action.search.toggleQueryDetailsCtrl+Shift+COpen New Consoleworkbench.action.terminal.openNativeConsoleCtrl+Shift+UShow Outputworkbench.action.output.showOutputCtrl+L LShow OmniSharp Logomnisharp.show.generalLogCtrl+L Ctrl+LShow OmniSharp Log to the Sideomnisharp.show.generalLogOnSideCtrl+Shift+VToggle Markdown Previewworkbench.action.markdown.togglePreviewShortcuts - DebugKeyCommandCommand idF9Toggle Breakpointeditor.debug.action.toggleBreakpointF5Continueworkbench.action.debug.playF5Pauseworkbench.action.debug.startF11Step Intoworkbench.action.debug.stepIntoShift+F11Step Outworkbench.action.debug.stepOutF10Step Overworkbench.action.debug.stepOverShift+F5Stopworkbench.action.debug.stopShortcuts - TasksKeyCommandCommand idCtrl+Shift+BRun Build Taskworkbench.action.tasks.buildCtrl+Shift+TRun Test Taskworkbench.action.tasks.test