install-vscode-extension

Installs VS Code extensions by ID using the workbench.extensions.installExtension command.

Updated Apr 14, 2026
One-click install
npx skills add https://github.com/jimeh/hucode --skill install-vscode-extension-jimeh
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: install-vscode-extension
Source: https://github.com/jimeh/hucode/tree/main/extensions/copilot/assets/prompts/skills/install-vscode-extension
Command: npx skills add https://github.com/jimeh/hucode --skill install-vscode-extension-jimeh

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Users often know the name of a VS Code extension they want but not the exact steps or command needed to install it programmatically. This Skill removes that friction by installing any extension directly from its extension ID through the VS Code command API. ## Core Features & Use Cases - Extension ID Resolution: Works with standard extension IDs in the publisher.extensionName format, such as ms-python.python. - Stable vs Pre-release Handling: Installs the pre-release version when the user explicitly requests it or when running in VS Code Insiders, otherwise installs the stable version. - Direct Command Execution: Invokes workbench.extensions.installExtension via the copilot_runVscodeCommand tool with skipCheck enabled. - Use Case: A user says "install the Python extension" and the Skill runs the install command for ms-python.python with the extension enabled immediately. ## Quick Start Ask the assistant to install a VS Code extension by name or ID, for example: install the ms-python.python extension in my editor.

Frequently Asked Questions about install-vscode-extension

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I install a VS Code extension from the command line or programmatically?▼

Use the workbench.extensions.installExtension command with the extension ID as the argument, in the form [extensionId, { enable: true, installPreReleaseVersion: boolean }]. This installs and enables the extension without opening the Extensions view.

What is a VS Code extension ID and where do I find it?▼

An extension ID uniquely identifies an extension in the format publisher.extensionName, for example ms-python.python for the Microsoft Python extension. It appears on the extension's marketplace page and in its details pane.

How do I install the pre-release version of a VS Code extension?▼

Pass installPreReleaseVersion: true in the options argument of workbench.extensions.installExtension. Pre-release is chosen when the user explicitly asks for it or when the current environment is VS Code Insiders; otherwise the stable version is installed.

Can I install VS Code extensions without opening the Extensions marketplace UI?▼

Yes, the workbench.extensions.installExtension command installs extensions directly by ID without any UI interaction. The copilot_runVscodeCommand tool executes it with skipCheck set to true since the command is built into VS Code.

Why does extension installation fail for an unknown extension ID?▼

Installation fails when the extension ID does not follow the publisher.extensionName format or does not exist in the marketplace. Verify the exact ID on the extension's marketplace page before running the install command.