Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 1.32 KB

DEVELOPMENT.md

File metadata and controls

34 lines (25 loc) · 1.32 KB

Development

Setup

Install dependencies

Dependencies are managed using npm. The vsce package does not work well with other package managers.

npm install

Install VSCode

Install the latest version of Visual Studio Code.

Test

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.

Reloading Changes

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.

Publishing

Versioning

Before publishing, update the version according to Semantic Versioning. This can be done by running the following command:

npm version patch|minor|major

Publishing

Publish the extension to the VSCode Marketplace.

vsce publish