Skip to content
Development
Skill

/install-vscode-extension

How to install a VS Code extension from an extension ID. Useful when the user wants to add new capabilities to their VS Code environment by installing extensions.

From plugin
vscode
189k26 skills
Install
$ npx -y skills add microsoft/vscode --skill install-vscode-extension --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/install-vscode-extension

Context preview

The summary Claude sees to decide when to auto-load this skill.

How to install a VS Code extension from an extension ID. Useful when the user wants to add new capabilities to their VS Code environment by installing extensions.

SKILL.md

install-vscode-extension.SKILL.md
name: install-vscode-extension
description: 'How to install a VS Code extension from an extension ID. Useful when the user wants to add new capabilities to their VS Code environment by installing extensions.'

Installing VS Code extensions

1. VS Code extensions are identified by their unique extension ID, which typically follows the format `publisher.extensionName`. For example, the Python extension by Microsoft has the ID `ms-python.python`. 2. To install a VS Code extension, you need to use the VS Code command `workbench.extensions.installExtension` and pass in the extension ID. The args are of the format:

[extensionId, { enable: true, installPreReleaseVersion: boolean }]

> NOTE: install the pre-release version of the extension if the user explicitly mentions it or if the current environment is VS Code Insiders. Otherwise, install the stable version. 3. Run that command via the `copilot_runVscodeCommand` tool. Make sure to pass the `skipCheck` argument as true to avoid checking if the command exists, as we know it does.

Ships withvscode

Visual Studio Code

Get the whole plugin
Stats
188,563
Stars
41,517
Forks
Active
Maintenance
TypeScript
Language
MIT
License
59m ago
Last commit
10y ago
Created

Repo: microsoft/vscode