Home / Market / vscode extension guide en

vscode extension guide en

Guide for VS Code extension development from scaffolding to Marketplace publication

skill★ 508400 dlgithubCC-BY-4.0 content; MIT code; upstream exceptions applyInstall in CosmosUpstream Source

Documentation & Preview

--- name: vscode-extension-guide-en description: "Guide for VS Code extension development from scaffolding to Marketplace publication" category: core-dev risk: safe source: community source_repo: lewiswigmore/agent-skills source_type: community date_added: "2026-04-12" author: lewiswigmore tags: [vscode, extension, ide, typescript, marketplace] tools: [claude, cursor, copilot, codex, gemini]

---

VS Code Extension Guide (English)

Overview

An English guide for building VS Code extensions, covering the full lifecycle from scaffolding to Marketplace publication. Includes reference material on webview patterns, CSP security, TreeView, testing, packaging and troubleshooting. Updated for VS Code 1.74+ APIs.

Adapted from aktsmm/agent-skills (CC BY-NC-SA 4.0), translated to English with corrections for current VS Code APIs.

When to Use This Skill

How It Works

Quick Start

npm install -g yo generator-code
yo code

Project Structure

my-extension/
├── package.json          # Extension manifest
├── src/extension.ts      # Entry point
├── out/                  # Compiled JS
├── images/icon.png       # 128x128 PNG for Marketplace
└── .vscodeignore         # Exclude files from VSIX

Building and Packaging

npm run compile           # Build once
npm run watch             # Watch mode (F5 to launch debug)
npx @vscode/vsce package  # Creates .vsix

Reference Topics

The full skill includes detailed reference documents on:

Install the Full Skill

For the complete guide with all reference documents:

npx skills add lewiswigmore/agent-skills --skill vscode-extension-guide-en

Best Practices

Common Pitfalls

Solution: Check activationEvents. Since VS Code 1.74, these are auto-detected for contributed commands/views.

Solution: Match the command ID exactly between package.json and your code.

Solution: Check your Content Security Policy. Use the webview's cspSource property.

Related Skills

Limitations