Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>VBS FormatterNew to Visual Studio Code? Get it now.
VBS Formatter

VBS Formatter

Alin Clincea

|
4,707 installs
| (1) | Free
Format VBScript and VBA files.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VBS Formatter

Formats VBS and VBA code.

This is a fork of VBA Formatter by threatcon (Antonio Turner), which is a fork of VBSPretty by lenilsondc (Lenilson de Castro). You can check out the original code here:

  1. https://github.com/threatcon/vba-formatter
  2. https://www.npmjs.com/package/vbspretty

This fork was primarily intended to allow using the indent character and size configured globally for VS Code.

Features

Formats VBS and VBA code. It uses global indentation settings (tab or space, indent size).

Requirements

VS Code v.1.90.0

Extension Settings

None

Known Issues

  • in a For... Next loop, any method incidentally named Next (ex. of a cursor) breaks the formatting after it (probably, does the same for other keywords which appear as method names)

Release Notes

0.0.2

  • fix activation to cover code autodetected as vba
  • minor code improvements

0.0.1

  • initial release
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft