
install-vscode-extension
โ Officialโ 9,980by microsoft ยท part of microsoft/vscode-copilot-chat
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.
This is the playbook your agent receives when the skill activates โ you don't need to read it to use the skill, but it's here to audit before installing.
Installing VS Code extensions
- 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 IDms-python.python. - To install a VS Code extension, you need to use the VS Code command
workbench.extensions.installExtensionand 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.
- Run that command via the
copilot_runVscodeCommandtool. Make sure to pass theskipCheckargument as true to avoid checking if the command exists, as we know it does.
npx skills add microsoft/vscode-copilot-chat --skill "install-vscode-extension" --full-depthRun this in your project โ your agent picks the skill up automatically.
No common issues documented yet. If you hit a problem, the repository's GitHub Issues page is the best place to look.
Licensed under MITโ you can use, modify, and redistribute it under that license's terms.
View the full license file on GitHub โ