This guide will walk you through publishing PolyForm to the Visual Studio Code Extension Marketplace.
- Microsoft Account: You need a Microsoft account to create a publisher
- Azure DevOps Organization: Required for publishing
- Personal Access Token (PAT): For authentication
npm install -g @vscode/vsce- Go to Visual Studio Marketplace Publisher Management
- Sign in with your Microsoft account
- Click Create Publisher
- Fill in the details:
- Publisher ID:
hridesh-net(must matchpackage.json) - Display Name: Your name or organization
- Description: Brief description of your publisher profile
- Publisher ID:
vsce create-publisher hridesh-net- Go to Azure DevOps
- Sign in with the same Microsoft account
- Click on User Settings (top right) → Personal Access Tokens
- Click + New Token
- Configure the token:
- Name:
vsce-polyform - Organization: All accessible organizations
- Expiration: Custom (set to 1 year or more)
- Scopes: Select Marketplace → Manage
- Name:
- Click Create and copy the token (you won't see it again!)
vsce login hridesh-netWhen prompted, paste your Personal Access Token.
Ensure your package.json has all required fields (already done):
- ✅
name - ✅
displayName - ✅
description - ✅
version - ✅
publisher - ✅
repository - ✅
icon - ✅
categories - ✅
keywords
- Save the generated icon as
icon.pngin the root directory - Ensure it's 512x512px or larger
- PNG format with transparency
# If you haven't already
touch LICENSEAdd MIT License content (or your preferred license).
Ensure README.md has:
- Clear description
- Screenshots/GIFs
- Installation instructions
- Usage examples
# This creates a .vsix file
vsce packageThis will create polyform-0.1.0.vsix (or your current version).
code --install-extension polyform-0.1.0.vsixvsce publishThis will:
- Package your extension
- Upload it to the marketplace
- Make it available for installation
When you make changes:
-
Update the version in
package.json:"version": "0.1.1" // Increment version
-
Publish the update:
# Patch version (0.1.0 → 0.1.1) vsce publish patch # Minor version (0.1.0 → 0.2.0) vsce publish minor # Major version (0.1.0 → 1.0.0) vsce publish major
- Go to VS Code Marketplace
- Search for "PolyForm"
- Verify your extension appears with correct:
- Icon
- Description
- Screenshots
- Installation instructions
- View downloads, installs, and ratings at Publisher Management
When you push updates:
- Commit changes to git
- Update version in
package.json - Run
vsce publish patch/minor/major - Tag the release in git:
git tag v0.1.1 git push origin v0.1.1
Make sure the publisher field in package.json matches your publisher ID exactly.
Ensure README.md exists in the root directory.
Verify icon.png exists and is referenced correctly in package.json.
Follow semantic versioning: MAJOR.MINOR.PATCH (e.g., 0.1.0, 1.0.0)
# Package without publishing
vsce package
# Publish with specific version
vsce publish 0.2.0
# Unpublish (use with caution!)
vsce unpublish hridesh-net.polyform
# Show extension info
vsce show hridesh-net.polyform
# List all your published extensions
vsce ls hridesh-net- Semantic Versioning: Follow semver (MAJOR.MINOR.PATCH)
- Changelog: Maintain a
CHANGELOG.mdfile - Testing: Test thoroughly before publishing
- Screenshots: Add high-quality screenshots to README
- Keywords: Use relevant keywords for discoverability
- Documentation: Keep README and docs up to date
- License: Always include a LICENSE file
Ready to publish? Run vsce publish and share PolyForm with the world! 🚀