- Microsoft/GitHub account
- Node.js and npm installed
- Extension tested and working
- Go to https://marketplace.visualstudio.com/manage
- Sign in with Microsoft or GitHub
- Click "Create Publisher"
- Choose a unique publisher ID (e.g., "pranav140")
- Fill in your details
- Go to https://dev.azure.com/
- Click on your profile → Security → Personal Access Tokens
- Click "New Token"
- Name: "VS Code Publishing"
- Organization: All accessible organizations
- Scopes: Select "Marketplace" → "Manage"
- Click "Create" and COPY THE TOKEN (you won't see it again!)
Replace YOUR_PUBLISHER_ID in package.json with your actual publisher ID from step 1.
- Open
create-icon.htmlin a browser - Right-click the canvas and save as
icon.png - Or create your own 128x128 PNG icon
If you skip this, remove the "icon": "icon.png" line from package.json.
# Make sure dependencies are installed
npm install
# Compile TypeScript
npm run compile
# Package the extension
vsce packageThis creates a .vsix file (e.g., code-chronicle-0.0.1.vsix)
# Install in VS Code
code --install-extension code-chronicle-0.0.1.vsixTest it thoroughly before publishing!
# Login with your token
vsce login YOUR_PUBLISHER_ID
# Paste your Personal Access Token when prompted
# Publish
vsce publish- Go to https://marketplace.visualstudio.com/
- Search for "CodeChronicle"
- Your extension should appear within a few minutes!
When you make changes:
# Update version in package.json (e.g., 0.0.1 → 0.0.2)
# Then:
npm run compile
vsce publishOr use version bump commands:
vsce publish patch # 0.0.1 → 0.0.2
vsce publish minor # 0.0.1 → 0.1.0
vsce publish major # 0.0.1 → 1.0.0If you don't want to publish publicly yet:
- Create the .vsix file:
vsce package - Share the file on GitHub releases
- Users install with:
code --install-extension code-chronicle-0.0.1.vsix
- Add
"publisher": "your-id"to package.json
- Already added in package.json
- Either create icon.png or remove the icon field from package.json
- Already have README.md ✓
- Already have LICENSE ✓