Publishing your extension
Once you have your extension polished and ready to share, you need to push it to the marketplace. We will use vsce for this. Short for Visual Studio Code Extensions, vsce is a command-line tool for packaging, publishing, and managing VS Code extensions.
Prerequisites to packaging and publishing
Before you can publish, you will need to create a personal access token (PAT) and a publisher. This process requires you to have an Azure DevOps organization, which is free to create and use.
More information on this process is available from https://code.visualstudio.com/api/working-with-extensions/publishing-extension#publishing-extensions.
Just like before, we will use npm to install the vsce
package, like this:
npm install -g vsce
Once it's installed, we can use it to package and publish our extensions directly to the marketplace. To create a vsix package, we just need to move into the directory, run package
, and then publish
, by doing the...