install-vscode-extension

작성자: microsoft

VS Code 확장 프로그램 ID를 사용하여 설치하는 방법. 사용자가 VS Code 환경에 새로운 기능을 추가하고자 할 때 유용합니다.

npx skills add https://github.com/microsoft/vscode-copilot-chat --skill install-vscode-extension

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.

  1. 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.