VSCode extension to run commands from Tree View / Status Bar / Quick Pick.
VSCode extension to run commands from Tree View / Status Bar / Quick Pick.
"Toggle activity": "workbench.action.toggleActivityBarVisibility","Typing": {
"command": "editor.action.insertSnippet",
"args": {
"snippet": "Typing... ",
},
},"Toggle multiple settings": {
"sequence": [
"editor.action.toggleMinimap",
"workbench.action.toggleStatusbarVisibility",
],
},"GitHub": {
"icon": "github",
},
"Flame": {
"icon": "flame",
"iconColor": "errorForeground",
},"folder": {
"nestedItems": {
"Flame": {
"icon": "flame",
"iconColor": "errorForeground",
},
"Trusted": {
"icon": "workspace-trusted",
"iconColor": "terminal.ansiGreen",
},
},
},commands.openAsQuickPick"Toggle line numbers": {
"command": "commands.toggleSetting",
"args": {
"setting": "editor.lineNumbers",
"value": [
"on",
"off",
],
},
"statusBar": {
"alignment": "left",
"text": "",
"priority": -9999,
},
},| Command | Description |
|---|---|
| commands.openAsQuickPick | Commands: Open as Quick Pick |
| commands.selectAndRun | Commands: Select and run command |
| commands.rerun | Commands: Rerun last command |
| commands.suggestCommands | Commands: Suggest (autocomplete) commands |
| commands.suggestCodicons | Commands: Suggest Codicons |
| commands.suggestVariables | Commands: Suggest variables that are supported by this extension's variable substitutions, e.g: ${workspaceFolderBasename}. Docs |
| commands.suggestSettings | Commands: Suggest setting ids (user & workspace). |
| commands.suggestColors | Commands: Suggest theme color ids theme-color. |
| commands.newCommand | Commands: Add new command to the list |
| commands.escapeCommandUriArgument | Commands: Escape command uri argument |
| commands.startTerminalWatch | Commands: Start Terminal Watching |
| commands.extensionModifiedSettings | Commands: Show modified settings from Extension |
| Setting | Default | Description |
|---|---|---|
| commands.commands | {} | Main extension property. Commands that will be rendered in the View. |
| commands.variableSubstitutionEnabled | true | Allow "args" to replace variables: Docs. |
| commands.workspaceCommands | {} | Commands that will be rendered in the View, specific to the workspace. |
| commands.alias | {} | Use shorter command ids. Extension registers aliased commands so that they can be also used in keybindings. |
| commands.cycle | {} | Register a new command (id will be commands.cycle.${OBJECT_KEY}) that runs one command from the list. If the last command was the last item on the list then run the first command from the list. |
| commands.showKeybindings | false | Whether or not to show keyboard shortcuts assigned to command contributed by user. (Currently only displayed in Tree View). |
| commands.treeViewCollapseFolders | false | Collapse folders by default. Requires reload before being applied. |
| commands.treeViewStatusBarVisibleSymbol | "" | Symbol used in the tree view to indicate that command is also visible in the status bar. |
| commands.treeViewStatusBarInvisibleSymbol | "" | Symbol used in the tree view to indicate that status bar item exists but is invisible ("hidden": true,). |
| commands.treeViewWorkspaceCommandSymbol | "" | Symbol used in the tree view to indicate workspace command (from #commands.workspaceCommands#) setting. |
| commands.statusBarDefaultText | "same" | Controls the text of Status Bar item when adding from Tree View context menu. |
| commands.statusBarDefaultPosition | "left" | Where to put command on Status Bar (left or right). |
| commands.quickPickIncludeAllCommands | false | When checked - include all commands from Command Palette to the Quick Pick. |
| commands.populateCommandPalette | false | Adds all items to Command Palette (Requires editor reload after every change of main config #commands.commands#). |
| commands.documentLinksEnabled | false | Run commands as links in documents. Links have format @command?args@. |
| issues/2 | ||
| commands.documentLinksPattern | "" | Glob for #commands.documentLinksEnabled#. Example: **/*.{ts,js} - only enable in TypeScript & JavaScript files. |
| commands.toggleSettings.showNotification | false | When enabled - show notification after using commands.toggleSetting or commands.incrementSetting. |
| commands.watchTerminalStatusBar | {...} | Enable status bar indicator that is supposed to show the status of a running in terminal command (dev | watch...). Will only work with contributed terminal profile Commands:Watch. Status of errors might not be perfect because it relies on simple text match. |
…type Type text into active editor"Typing": {
"command": "type",
"args": {
"text": "---",
},
},workbench.action.tasks.runTask Run task by its label// tasks.json
{
"label": "hello",
"type": "shell",
"command": "echo Hello",
},
// commands
"Run task": {
"command": "workbench.action.tasks.runTask",
"args": "hello",
},editor.action.insertSnippet Insert Snippet"Insert snippet": {
"command": "editor.action.insertSnippet",
"args": {
"snippet": "$BLOCK_COMMENT_START ${0:?} $BLOCK_COMMENT_END",
},
},workbench.action.terminal.sendSequence Send text to active terminal"Terminal: Run Watch": {
"command": "workbench.action.terminal.sendSequence",
"args": {
"text": "npm run watch\r",
},
},workbench.action.quickOpen Quick accessCan open Quick Pick with prefilled prefix (@... - symbol, view ... - open view, ...)
"Quick open (symbol)": {
"command": "workbench.action.quickOpen",
"args": "?",
},workbench.action.openSettings Open settings with prefilled input value"Open Settings": {
"command": "workbench.action.openSettings",
"args": "commands",
},workbench.action.openGlobalKeybindings Open keybindings with prefilled value"Quick Keybindings Editor": {
"command": "workbench.action.openGlobalKeybindings",
"args": "commands.",
},workbench.extensions.search Open Extensions View with prefilled value"Quick Extensions View": {
"command": "workbench.extensions.search",
"args": "@builtin",
},editor.action.codeAction Execute code action"Organize imports": {
"command": "editor.action.codeAction",
"args": {
"kind": "source.organizeImports",
},
},workbench.action.findInFiles Open search with specified args"Search with args": {
"command": "workbench.action.findInFiles",
"args": {
"query": "TODO",
"isRegex": false,
"isCaseSensitive": false,
"matchWholeWord": false,
"preserveCase": false,
"excludeSettingAndIgnoreFiles": true,
"triggerSearch": true,
"onlyOpenEditors": false,
// "replace": "",
// "filesToInclude": "",
// "filesToExclude": "",
},
},editor.actions.findWithArgs Open Editor Find Widget"Find Widget with args": {
"command": "editor.actions.findWithArgs",
"args": {
"searchString": "TODO",
"replaceString": "",
"isRegex": false,
"isCaseSensitive": false,
"matchWholeWord": false,
"preserveCase": false,
"findInSelection": false,
},
},search.action.openNewEditor Open Search Editor with specified args"Open search editor with args": {
"command": "search.action.openNewEditor",
"args": {
"query": "TODO",
"isRegexp": false,
"isCaseSensitive": false,
"matchWholeWord": false,
"preserveCase": false,
"excludeSettingAndIgnoreFiles": true,
"triggerSearch": true,
"contextLines": 2,
"showIncludesExcludes": true,
// "filesToInclude": "",
// "filesToExclude": "",
},
},cursorMove Move cursor to a logical position in the viewArguments object:
'left', 'right', 'up', 'down', 'prevBlankLine', 'nextBlankLine', 'wrappedLineStart', 'wrappedLineEnd', 'wrappedLineColumnCenter' 'wrappedLineFirstNonWhitespaceCharacter', 'wrappedLineLastNonWhitespaceCharacter' 'viewPortTop', 'viewPortCenter', 'viewPortBottom', 'viewPortIfOutside'
'line', 'wrappedLine', 'character', 'halfLine'
"Cursor move 10 down": {
"command": "cursorMove",
"args": {
"to": "down",
"by": "line",
"value": 10,
},
},editorScroll Scroll editor in the given directionArguments object:
up or down).line, wrappedLine, page, halfPage)."Scroll 10 lines down": {
"command": "editorScroll",
"args": {
"to": "down",
"by": "line",
"value": 10,
"revealCursor": true,
},
},moveActiveEditor Move the active editor by tabs or groupsleft or right).tab or by group)."Move editor to the left": {
"command": "moveActiveEditor",
"args": {
"to": "left",
"by": "tab",
"value": 50,
},
},vscode.setEditorLayout Sets the editor layoutExample for a 2x2 grid:
"2x2 grid": {
"command": "vscode.setEditorLayout",
"args": { "orientation": 0, "groups": [{ "groups": [{}, {}], "size": 0.5 }, { "groups": [{}, {}], "size": 0.5 }] },
},editor.emmet.action.wrapWithAbbreviation Wrap text with emmet"Wrap in div": {
"command": "editor.emmet.action.wrapWithAbbreviation",
"args": {
"abbreviation": "div",
"language": "html",
},
},workbench.action.openSettingsJson Opens settings.json file"Reveal setting json": {
"command": "workbench.action.openSettingsJson",
"args": {
"openToSide": true,
"revealSetting": {
"key": "editor.fontSize",
},
},No open issues yet, or sync has not completed.