spences10 / vscode-vba

VBA syntax highlighting and snippets for use in VSCode
MIT License
55 stars 30 forks source link
snippets syntax-highlighting vba vbscript vscode

VSCode VBA

Marketplace Version Installs Rating

Syntax Highlighting

This package provides syntax highlighting and snippets of VBA.

Based off an import of the [VBScript.tmLanguage] file from the Sublime Text VBScript repository.

Snippets

Basic code

Installation

Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.

ext install vba

Contributing

Please fork this repository and contribute back using pull requests.

Any contributions, large or small, major features, bugfixes and integration tests are welcomed and appreciated but will be thoroughly reviewed and discussed.

Contacts

You can contact me in the following ways:

Links

Handy links

I struggled to find how to generate a token after not doing anything with this project for well over a year:

To get to your token creation, go here:

Create a token:

Publish with CLI:

# login
vsce login <publisher name>
# install the things
npm i
# use the token created in earlier step
vsce package
# myExtension.vsix generated
# bump version
vsce publish minor # | major | patch
# vsce publish major, minor or patch
vsce publish -p <add created token here>

If you get ERROR Failed request: (401) see here:

Some good documentation on publishing with the CLI:

[vbscript.tmlanguage]: https://github.com/SublimeText/VBScript/blob/master/VBScript.tmLanguage

[market]: https://marketplace.visualstudio.com/items?itemName=spences10.VBA