This is a VS Code extension to indent VBA and VBS files in the active text editor. As the title states, it's mainly for VBA files.
This is a fork/adaptation of VBSPretty by lenilsondc, Lenilson de Castro. You can check out the original here: https://www.npmjs.com/package/vbspretty
I made the following modifications:
- Adapted the .js to work insde of a VS Code extension.
- Adjust the new line from '\r\n' to '\n'. The former was always creating new lines under comments.
- Added logic to adapt to VBA files with headers. It will ignore the standard VBA headers and begin formatting the first line afterwards.
Formats VBA and VBS files.
VS Code v.1.85.0
None
None at this time.
Iniital release
Added default line start at 0 when file does not have VBA headers
Added extension configuration Added extension as Document Format Provider. This allows the user to set the extension as the default formatter for the VB/VBS language.
Enjoy!