const actions = { /** Find */ find: { id: "actions.find", label: "Find" }, /** Find With Selection */ findWithSelection: { id: "actions.findWithSelection", label: "Find With Selection" }, }; const smartSelect = { /** Expand Selection */ expand: { id: "editor.action.smartSelect.expand", label: "Expand Selection" }, /** Shrink Selection */ shrink: { id: "editor.action.smartSelect.shrink", label: "Shrink Selection" }, }; const inPlaceReplace = { /** Replace with Previous Value */ up: { id: "editor.action.inPlaceReplace.up", label: "Replace with Previous Value" }, /** Replace with Next Value */ down: { id: "editor.action.inPlaceReplace.down", label: "Replace with Next Value" }, }; const diffReview = { /** Go to Next Difference */ next: { id: "editor.action.diffReview.next", label: "Go to Next Difference" }, /** Go to Previous Difference */ prev: { id: "editor.action.diffReview.prev", label: "Go to Previous Difference" }, }; const wordHighlight = { /** Go to Next Symbol Highlight */ next: { id: "editor.action.wordHighlight.next", label: "Go to Next Symbol Highlight" }, /** Go to Previous Symbol Highlight */ prev: { id: "editor.action.wordHighlight.prev", label: "Go to Previous Symbol Highlight" }, /** Trigger Symbol Highlight */ trigger: { id: "editor.action.wordHighlight.trigger", label: "Trigger Symbol Highlight" }, }; const referenceSearch = { /** Peek References */ trigger: { id: "editor.action.referenceSearch.trigger", label: "Peek References" }, }; const marker = { /** Go to Next Problem (Error, Warning, Info) */ next: { id: "editor.action.marker.next", label: "Go to Next Problem (Error, Warning, Info)" }, /** Go to Previous Problem (Error, Warning, Info) */ prev: { id: "editor.action.marker.prev", label: "Go to Previous Problem (Error, Warning, Info)" }, /** Go to Next Problem in Files (Error, Warning, Info) */ nextInFiles: { id: "editor.action.marker.nextInFiles", label: "Go to Next Problem in Files (Error, Warning, Info)" }, /** Go to Previous Problem in Files (Error, Warning, Info) */ prevInFiles: { id: "editor.action.marker.prevInFiles", label: "Go to Previous Problem in Files (Error, Warning, Info)" }, }; const action = { marker, referenceSearch, wordHighlight, diffReview, inPlaceReplace, smartSelect, /** Toggle High Contrast Theme */ toggleHighContrast: { id: "editor.action.toggleHighContrast", label: "Toggle High Contrast Theme" }, /** Move Caret Left */ moveCarretLeftAction: { id: "editor.action.moveCarretLeftAction", label: "Move Caret Left" }, /** Move Caret Right */ moveCarretRightAction: { id: "editor.action.moveCarretRightAction", label: "Move Caret Right" }, /** Transpose Letters */ transposeLetters: { id: "editor.action.transposeLetters", label: "Transpose Letters" }, /** Cut */ clipboardCutAction: { id: "editor.action.clipboardCutAction", label: "Cut" }, /** Copy */ clipboardCopyAction: { id: "editor.action.clipboardCopyAction", label: "Copy" }, /** Copy With Syntax Highlighting */ clipboardCopyWithSyntaxHighlightingAction: { id: "editor.action.clipboardCopyWithSyntaxHighlightingAction", label: "Copy With Syntax Highlighting" }, /** Toggle Line Comment */ commentLine: { id: "editor.action.commentLine", label: "Toggle Line Comment" }, /** Add Line Comment */ addCommentLine: { id: "editor.action.addCommentLine", label: "Add Line Comment" }, /** Remove Line Comment */ removeCommentLine: { id: "editor.action.removeCommentLine", label: "Remove Line Comment" }, /** Toggle Block Comment */ blockComment: { id: "editor.action.blockComment", label: "Toggle Block Comment" }, /** Show Editor Context Menu */ showContextMenu: { id: "editor.action.showContextMenu", label: "Show Editor Context Menu" }, /** Editor Font Zoom In */ fontZoomIn: { id: "editor.action.fontZoomIn", label: "Editor Font Zoom In" }, /** Editor Font Zoom Out */ fontZoomOut: { id: "editor.action.fontZoomOut", label: "Editor Font Zoom Out" }, /** Editor Font Zoom Reset */ fontZoomReset: { id: "editor.action.fontZoomReset", label: "Editor Font Zoom Reset" }, /** Format Document */ formatDocument: { id: "editor.action.formatDocument", label: "Format Document" }, /** Format Selection */ formatSelection: { id: "editor.action.formatSelection", label: "Format Selection" }, /** Copy Line Up */ copyLinesUpAction: { id: "editor.action.copyLinesUpAction", label: "Copy Line Up" }, /** Copy Line Down */ copyLinesDownAction: { id: "editor.action.copyLinesDownAction", label: "Copy Line Down" }, /** Duplicate Selection */ duplicateSelection: { id: "editor.action.duplicateSelection", label: "Duplicate Selection" }, /** Move Line Up */ moveLinesUpAction: { id: "editor.action.moveLinesUpAction", label: "Move Line Up" }, /** Move Line Down */ moveLinesDownAction: { id: "editor.action.moveLinesDownAction", label: "Move Line Down" }, /** Sort Lines Ascending */ sortLinesAscending: { id: "editor.action.sortLinesAscending", label: "Sort Lines Ascending" }, /** Sort Lines Descending */ sortLinesDescending: { id: "editor.action.sortLinesDescending", label: "Sort Lines Descending" }, /** Trim Trailing Whitespace */ trimTrailingWhitespace: { id: "editor.action.trimTrailingWhitespace", label: "Trim Trailing Whitespace" }, /** Delete Line */ deleteLines: { id: "editor.action.deleteLines", label: "Delete Line" }, /** Indent Line */ indentLines: { id: "editor.action.indentLines", label: "Indent Line" }, /** Outdent Line */ outdentLines: { id: "editor.action.outdentLines", label: "Outdent Line" }, /** Insert Line Above */ insertLineBefore: { id: "editor.action.insertLineBefore", label: "Insert Line Above" }, /** Insert Line Below */ insertLineAfter: { id: "editor.action.insertLineAfter", label: "Insert Line Below" }, /** Join Lines */ joinLines: { id: "editor.action.joinLines", label: "Join Lines" }, /** Transpose characters around the cursor */ transpose: { id: "editor.action.transpose", label: "Transpose characters around the cursor" }, /** Transform to Uppercase */ transformToUppercase: { id: "editor.action.transformToUppercase", label: "Transform to Uppercase" }, /** Transform to Lowercase */ transformToLowercase: { id: "editor.action.transformToLowercase", label: "Transform to Lowercase" }, /** Transform to Title Case */ transformToTitlecase: { id: "editor.action.transformToTitlecase", label: "Transform to Title Case" }, /** Developer: Force Retokenize */ forceRetokenize: { id: "editor.action.forceRetokenize", label: "Developer: Force Retokenize" }, /** Toggle Tab Key Moves Focus */ toggleTabFocusMode: { id: "editor.action.toggleTabFocusMode", label: "Toggle Tab Key Moves Focus" }, /** Go to Line... */ gotoLine: { id: "editor.action.gotoLine", label: "Go to Line..." }, /** Command Palette */ quickCommand: { id: "editor.action.quickCommand", label: "Command Palette" }, /** Select to Bracket */ selectToBracket: { id: "editor.action.selectToBracket", label: "Select to Bracket" }, /** Go to Bracket */ jumpToBracket: { id: "editor.action.jumpToBracket", label: "Go to Bracket" }, /** Go to Symbol... */ quickOutline: { id: "editor.action.quickOutline", label: "Go to Symbol..." }, /** Find Next */ nextMatchFindAction: { id: "editor.action.nextMatchFindAction", label: "Find Next" }, /** Find Previous */ previousMatchFindAction: { id: "editor.action.previousMatchFindAction", label: "Find Previous" }, /** Find Next Selection */ nextSelectionMatchFindAction: { id: "editor.action.nextSelectionMatchFindAction", label: "Find Next Selection" }, /** Find Previous Selection */ previousSelectionMatchFindAction: { id: "editor.action.previousSelectionMatchFindAction", label: "Find Previous Selection" }, /** Replace */ startFindReplaceAction: { id: "editor.action.startFindReplaceAction", label: "Replace" }, /** Open Link */ openLink: { id: "editor.action.openLink", label: "Open Link" }, /** Quick Fix... */ quickFix: { id: "editor.action.quickFix", label: "Quick Fix..." }, /** Refactor... */ refactor: { id: "editor.action.refactor", label: "Refactor..." }, /** Source Action... */ sourceAction: { id: "editor.action.sourceAction", label: "Source Action..." }, /** Organize Imports */ organizeImports: { id: "editor.action.organizeImports", label: "Organize Imports" }, /** Auto Fix... */ autoFix: { id: "editor.action.autoFix", label: "Auto Fix..." }, /** Fix All */ fixAll: { id: "editor.action.fixAll", label: "Fix All" }, /** Add Cursor Above */ insertCursorAbove: { id: "editor.action.insertCursorAbove", label: "Add Cursor Above" }, /** Add Cursor Below */ insertCursorBelow: { id: "editor.action.insertCursorBelow", label: "Add Cursor Below" }, /** Add Cursors to Line Ends */ insertCursorAtEndOfEachLineSelected: { id: "editor.action.insertCursorAtEndOfEachLineSelected", label: "Add Cursors to Line Ends" }, /** Add Selection To Next Find Match */ addSelectionToNextFindMatch: { id: "editor.action.addSelectionToNextFindMatch", label: "Add Selection To Next Find Match" }, /** Add Selection To Previous Find Match */ addSelectionToPreviousFindMatch: { id: "editor.action.addSelectionToPreviousFindMatch", label: "Add Selection To Previous Find Match" }, /** Move Last Selection To Next Find Match */ moveSelectionToNextFindMatch: { id: "editor.action.moveSelectionToNextFindMatch", label: "Move Last Selection To Next Find Match" }, /** Move Last Selection To Previous Find Match */ moveSelectionToPreviousFindMatch: { id: "editor.action.moveSelectionToPreviousFindMatch", label: "Move Last Selection To Previous Find Match" }, /** Select All Occurrences of Find Match */ selectHighlights: { id: "editor.action.selectHighlights", label: "Select All Occurrences of Find Match" }, /** Change All Occurrences */ changeAll: { id: "editor.action.changeAll", label: "Change All Occurrences" }, /** Add Cursors To Bottom */ addCursorsToBottom: { id: "editor.action.addCursorsToBottom", label: "Add Cursors To Bottom" }, /** Add Cursors To Top */ addCursorsToTop: { id: "editor.action.addCursorsToTop", label: "Add Cursors To Top" }, /** Trigger Parameter Hints */ triggerParameterHints: { id: "editor.action.triggerParameterHints", label: "Trigger Parameter Hints" }, /** Rename Symbol */ rename: { id: "editor.action.rename", label: "Rename Symbol" }, /** Show Accessibility Help */ showAccessibilityHelp: { id: "editor.action.showAccessibilityHelp", label: "Show Accessibility Help" }, /** Developer: Inspect Tokens */ inspectTokens: { id: "editor.action.inspectTokens", label: "Developer: Inspect Tokens" }, /** Go to Definition */ revealDefinition: { id: "editor.action.revealDefinition", label: "Go to Definition" }, /** Open Definition to the Side */ revealDefinitionAside: { id: "editor.action.revealDefinitionAside", label: "Open Definition to the Side" }, /** Peek Definition */ peekDefinition: { id: "editor.action.peekDefinition", label: "Peek Definition" }, /** Go to Declaration */ revealDeclaration: { id: "editor.action.revealDeclaration", label: "Go to Declaration" }, /** Peek Declaration */ peekDeclaration: { id: "editor.action.peekDeclaration", label: "Peek Declaration" }, /** Go to Type Definition */ goToTypeDefinition: { id: "editor.action.goToTypeDefinition", label: "Go to Type Definition" }, /** Peek Type Definition */ peekTypeDefinition: { id: "editor.action.peekTypeDefinition", label: "Peek Type Definition" }, /** Go to Implementations */ goToImplementation: { id: "editor.action.goToImplementation", label: "Go to Implementations" }, /** Peek Implementations */ peekImplementation: { id: "editor.action.peekImplementation", label: "Peek Implementations" }, /** Go to References */ goToReferences: { id: "editor.action.goToReferences", label: "Go to References" }, /** Show Hover */ showHover: { id: "editor.action.showHover", label: "Show Hover" }, /** Show Definition Preview Hover */ showDefinitionPreviewHover: { id: "editor.action.showDefinitionPreviewHover", label: "Show Definition Preview Hover" }, /** Trigger Suggest */ triggerSuggest: { id: "editor.action.triggerSuggest", label: "Trigger Suggest" } }; const editor = { action, /** Unfold */ unfold: { id: "editor.unfold", label: "Unfold" }, /** Unfold Recursively */ unfoldRecursively: { id: "editor.unfoldRecursively", label: "Unfold Recursively" }, /** Fold */ fold: { id: "editor.fold", label: "Fold" }, /** Fold Recursively */ foldRecursively: { id: "editor.foldRecursively", label: "Fold Recursively" }, /** Fold All */ foldAll: { id: "editor.foldAll", label: "Fold All" }, /** Unfold All */ unfoldAll: { id: "editor.unfoldAll", label: "Unfold All" }, /** Fold All Block Comments */ foldAllBlockComments: { id: "editor.foldAllBlockComments", label: "Fold All Block Comments" }, /** Fold All Regions */ foldAllMarkerRegions: { id: "editor.foldAllMarkerRegions", label: "Fold All Regions" }, /** Unfold All Regions */ unfoldAllMarkerRegions: { id: "editor.unfoldAllMarkerRegions", label: "Unfold All Regions" }, /** Toggle Fold */ toggleFold: { id: "editor.toggleFold", label: "Toggle Fold" }, /** Fold Level 1 */ foldLevel1: { id: "editor.foldLevel1", label: "Fold Level 1" }, /** Fold Level 2 */ foldLevel2: { id: "editor.foldLevel2", label: "Fold Level 2" }, /** Fold Level 3 */ foldLevel3: { id: "editor.foldLevel3", label: "Fold Level 3" }, /** Fold Level 4 */ foldLevel4: { id: "editor.foldLevel4", label: "Fold Level 4" }, /** Fold Level 5 */ foldLevel5: { id: "editor.foldLevel5", label: "Fold Level 5" }, /** Fold Level 6 */ foldLevel6: { id: "editor.foldLevel6", label: "Fold Level 6" }, /** Fold Level 7 */ foldLevel7: { id: "editor.foldLevel7", label: "Fold Level 7" }, }; const commands = { /** Cursor Undo */ cursorUndo: { id: "cursorUndo", label: "Cursor Undo" }, /** Cursor Redo */ cursorRedo: { id: "cursorRedo", label: "Cursor Redo" }, /** Delete All Left */ deleteAllLeft: { id: "deleteAllLeft", label: "Delete All Left" }, /** Delete All Right */ deleteAllRight: { id: "deleteAllRight", label: "Delete All Right" }, actions, editor }; export default commands;