Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

vscode-extension-guide

БесплатноБез исполняемых скриптовНе проверен

Guide for creating VS Code extensions and plugins from scratch through Marketplace publication. Use when developing a VS Code extension/plugin, adding…

aktsmmот aktsmm★ 27 звёзд на GitHub

Об этом скилле

VS Code Extension Guide

Create, develop, and publish VS Code extensions.

For extensions with a management UI, default to a dedicated Activity Bar icon and sidebar unless another entry point is explicitly chosen. A Marketplace icon alone does not create that navigation; use the TreeView reference below.

For user-facing extensions, provide a clearly labeled bug-report/feature-request entry in the primary sidebar or management UI and a Command Palette fallback; a README or Marketplace link alone is insufficient. Preview minimal, non-sensitive metadata before opening a fixed feedback destination; leave submission to the user and never auto-attach prompts, raw logs, secrets or private paths.

When to Use

  • VS Code extension, extension development, vscode plugin
  • Creating a new VS Code extension from scratch
  • Adding commands, keybindings, or settings to an extension
  • Publishing to VS Code Marketplace

Quick Start

# Scaffold new extension (recommended)
npm install -g yo generator-code
yo code

# Or minimal manual setup
mkdir my-extension && cd my-extension
npm init -y && npm install -D typescript @types/vscode

Project Structure

my-extension/
├── package.json          # Extension manifest
├── src/extension.ts      # Entry point
├── out/                  # Compiled JS (gitignore)
├── artifacts/vsix/       # Keep local VSIX archives out of the repo root
├── images/icon.png       # 128x128 PNG for Marketplace
└── .vscodeignore         # Exclude files from VSIX

Building & Packaging

npm run compile      # Build once
npm run watch        # Watch mode (F5 to launch debug)
mkdir -p artifacts/vsix
npx @vscode/vsce package --out artifacts/vsix/my-extension-1.0.0.vsix

In PowerShell, replace mkdir -p artifacts/vsix with New-Item -ItemType Directory -Force -Path 'artifacts\vsix'; keep the other build/package commands. Choose shell syntax from the execution environment, not the agent host.

Keep local .vsix archives under artifacts/vsix/ instead of the repository root, and prune old local builds on a schedule so release artifacts do not pile up. artifacts/ can already hold tracked files: delete only the VSIX you created, never the directory (check git ls-files artifacts first).

Done Criteria

  • The packaged VSIX installs and activates in an isolated profile; changed user-facing integrations complete their real workflow there
  • Primary sidebar entry and commands work; referenced icons are present in the VSIX
  • Package size < 5MB (use .vscodeignore)
  • README links and feedback UI reach the intended support destination; verify the UI-to-form path with synthetic data without submitting
  • Local VSIX artifacts stored outside the repo root and pruned regularly

Quick Troubleshooting

Symptom Fix
Extension not loading Check main/engines.vscode; contributed commands/views activate implicitly (1.74+), add activationEvents only for other triggers
Command not found Match command ID in package.json/code
Shortcut not working Remove when clause, check conflicts

Reference Map

Topic Reference
AI Customization references/ai-customization.md
Code Review Prompts references/code-review-prompts.md
Code Samples references/ai-customization.md and references/webview.md
TreeView references/treeview.md
Webview references/webview.md
Testing references/testing.md
Publishing references/publishing.md
Troubleshooting [references/troubleshooting.md](references/troubles
Полный SKILL.md на GitHub

Установить vscode-extension-guide в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

LICENSE.txtreferences/ai-customization.mdreferences/code-review-prompts.mdreferences/notification-normalization.mdreferences/publishing.mdreferences/safe-replace.mdreferences/testing.mdreferences/treeview.mdreferences/troubleshooting.mdreferences/webview.md

FAQ

Что делает скилл vscode-extension-guide?

Guide for creating VS Code extensions and plugins from scratch through Marketplace publication. Use when developing a VS Code extension/plugin, adding commands or keybindings, building TreeView or Webview UI, publishing to Marketplace, implementing update/reinstall flows that replace user-owned files, or troubleshooting activation and packaging issues.

Как установить скилл vscode-extension-guide?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл vscode-extension-guide запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить vscode-extension-guide с