Dependencies are managed using npm. The vsce
package does not work well with other package managers.
npm install
Install the latest version of Visual Studio Code.
Test the extension by opening the project folder in VSCode and pressing F5. This will open a new VSCode window known as the Extension Development Host with the extension enabled.
Shift + Alt + F will format the file in the active editor, allowing you to test the formatter on the provided files in the ./test
directory.
After applying changes to the extension, you can reload the Extension Development Host by pressing Ctrl + R in the Extension Development Host window. You do not need to build the extension to reload changes, as there is a watcher that will automatically rebuild the extension.
Before publishing, update the version according to Semantic Versioning. This can be done by running the following command:
npm version patch|minor|major
Publish the extension to the VSCode Marketplace.
vsce publish