A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://code.visualstudio.com/api/references/commands below:

Built-in Commands | Visual Studio Code Extension API

Built-in Commands

This document lists a subset of Visual Studio Code commands that you might use with vscode.commands.executeCommand API.

Read the Commands guide for how to use the commands API.

The following is a sample of how to open a new folder in VS Code:

let uri = Uri.file('/some/path/to/folder');
let success = await commands.executeCommand('vscode.openFolder', uri);

Note: You can review the full set of VS Code commands via the Keyboard Shortcuts editor File > Preferences > Keyboard Shortcuts. The Keyboard Shortcuts editor lists all commands built into VS Code or contributed by extensions, along with their keybindings and visibility when clauses.

Commands

vscode.executeDataToNotebook - Invoke notebook serializer

vscode.executeNotebookToData - Invoke notebook serializer

notebook.selectKernel - Trigger kernel picker for specified notebook editor widget

interactive.open - Open interactive window and return notebook editor and input URI

vscode.editorChat.start - Invoke a new editor chat session

vscode.executeDocumentHighlights - Execute document highlight provider.

vscode.executeDocumentSymbolProvider - Execute document symbol provider.

vscode.executeFormatDocumentProvider - Execute document format provider.

vscode.executeFormatRangeProvider - Execute range format provider.

vscode.executeFormatOnTypeProvider - Execute format on type provider.

vscode.executeDefinitionProvider - Execute all definition providers.

vscode.executeTypeDefinitionProvider - Execute all type definition providers.

vscode.executeDeclarationProvider - Execute all declaration providers.

vscode.executeImplementationProvider - Execute all implementation providers.

vscode.executeReferenceProvider - Execute all reference providers.

vscode.executeHoverProvider - Execute all hover providers.

vscode.executeSelectionRangeProvider - Execute selection range provider.

vscode.executeWorkspaceSymbolProvider - Execute all workspace symbol providers.

vscode.prepareCallHierarchy - Prepare call hierarchy at a position inside a document

vscode.provideIncomingCalls - Compute incoming calls for an item

vscode.provideOutgoingCalls - Compute outgoing calls for an item

vscode.prepareRename - Execute the prepareRename of rename provider.

vscode.executeDocumentRenameProvider - Execute rename provider.

vscode.executeLinkProvider - Execute document link provider.

vscode.provideDocumentSemanticTokensLegend - Provide semantic tokens legend for a document

vscode.provideDocumentSemanticTokens - Provide semantic tokens for a document

vscode.provideDocumentRangeSemanticTokensLegend - Provide semantic tokens legend for a document range

vscode.provideDocumentRangeSemanticTokens - Provide semantic tokens for a document range

vscode.executeCompletionItemProvider - Execute completion item provider.

vscode.executeSignatureHelpProvider - Execute signature help provider.

vscode.executeCodeLensProvider - Execute code lens provider.

vscode.executeCodeActionProvider - Execute code action provider.

vscode.executeDocumentColorProvider - Execute document color provider.

vscode.executeColorPresentationProvider - Execute color presentation provider.

vscode.executeInlayHintProvider - Execute inlay hints provider

vscode.executeFoldingRangeProvider - Execute folding range provider

vscode.resolveNotebookContentProviders - Resolve Notebook Content Providers

vscode.executeInlineValueProvider - Execute inline value provider

vscode.open - Opens the provided resource in the editor. Can be a text or binary file, or an http(s) URL. If you need more control over the options for opening a text file, use vscode.window.showTextDocument instead.

vscode.openWith - Opens the provided resource with a specific editor.

vscode.diff - Opens the provided resources in the diff editor to compare their contents.

vscode.changes - Opens a list of resources in the changes editor to compare their contents.

vscode.prepareTypeHierarchy - Prepare type hierarchy at a position inside a document

vscode.provideSupertypes - Compute supertypes for an item

vscode.provideSubtypes - Compute subtypes for an item

vscode.revealTestInExplorer - Reveals a test instance in the explorer

setContext - Set a custom context key value that can be used in when clauses.

vscode.executeMappedEditsProvider - Execute Mapped Edits Provider

cursorMove - Move cursor to a logical position in the view

editorScroll - Scroll editor in the given direction

revealLine - Reveal the given line at the given logical position

editor.unfold - Unfold the content in the editor

editor.fold - Fold the content in the editor

editor.toggleFold - Folds or unfolds the content in the editor depending on its current state

editor.actions.findWithArgs - Open a new In-Editor Find Widget with specific options.

editor.action.goToLocations - Go to locations from a position in a file

editor.action.peekLocations - Peek locations from a position in a file

workbench.action.quickOpen - Quick access

notebook.cell.toggleOutputs - Toggle Outputs

notebook.fold - Fold Cell

notebook.unfold - Unfold Cell

notebook.selectKernel - Notebook Kernel Args

notebook.cell.changeLanguage - Change Cell Language

notebook.execute - Run All

notebook.cell.execute - Execute Cell

notebook.cell.executeAndFocusContainer - Execute Cell and Focus Container

notebook.cell.cancelExecution - Stop Cell Execution

workbench.action.findInFiles - Open a workspace search

_interactive.open - Open Interactive Window

interactive.execute - Execute the Contents of the Input Box

search.action.openNewEditor - Open a new search editor. Arguments passed can include variables like ${relativeFileDirname}.

search.action.openEditor - Open a new search editor. Arguments passed can include variables like ${relativeFileDirname}.

search.action.openNewEditorToSide - Open a new search editor. Arguments passed can include variables like ${relativeFileDirname}.

vscode.openFolder - Open a folder or workspace in the current window or new window depending on the newWindow argument. Note that opening in the same window will shutdown the current extension host process and start a new one on the given folder/workspace unless the newWindow parameter is set to true.

vscode.newWindow - Opens an new window depending on the newWindow argument.

vscode.removeFromRecentlyOpened - Removes an entry with the given path from the recently opened list.

moveActiveEditor - Move the active editor by tabs or groups

copyActiveEditor - Copy the active editor by groups

vscode.getEditorLayout - Get Editor Layout

workbench.action.files.newUntitledFile - New Untitled Text File

workbench.extensions.installExtension - Install the given extension

workbench.extensions.uninstallExtension - Uninstall the given extension

workbench.extensions.search - Search for a specific extension

workbench.action.tasks.runTask - Run Task

workbench.action.openIssueReporter - Open the issue reporter and optionally prefill part of the form.

vscode.openIssueReporter - Open the issue reporter and optionally prefill part of the form.

workbench.action.openLogFile - workbench.action.openLogFile

workbench.action.openWalkthrough - Open the walkthrough.

Simple commands

Simple commands that do not require parameters can be found in the Keyboard Shortcuts list in the default keybindings.json file. The unbound commands are listed in a comment block at the bottom of the file.

To review the default keybindings.json, run Preferences: Open Default Keyboard Shortcuts (JSON) from the Command Palette (⇧⌘P (Windows, Linux Ctrl+Shift+P)).

07/09/2025


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4