Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>VBANew to Visual Studio Code? Get it now.
VBA

VBA

serkonda7

|
183,139 installs
| (5) | Free
VBA and VB6 tooling, syntax highlighting and snippets.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VBA Support for VS Code

CI Marketplace Installs Open VSX Installs

✨ Features

We power the syntax highlighting on GitHub for VBA and VB6!

  • Syntax highlighting for
    • VBA
    • VB6
  • Comprehensive snippets
  • Support for some niche BASIC dialects (community maintained):
    • WinWrap Basic (WWB)

For technical details about the languages and grammars, see the docs.

📖 Select correct grammar for VB6

By default, .bas, .cls and .frm files open as VBA.

To treat them as VB6 instead, add a .vscode/settings.json to your project:

{
  "files.associations": {
    "*.bas": "vb6",
    "*.cls": "vb6",
    "*.frm": "vb6"
  }
}

💡 Snippets

Available snippets (all languages):

  • If
  • ElseIf
  • Else
  • Sub
  • Function

📌 Project Status

This project is actively maintained:

  • ✅ All pull requests are welcome and will be reviewed
  • ✅ Issues and bugs are adressed
  • ⚠️ For now, no major new features are planned

For advanced features like a VBA language server, try SSlinky/VBA-LanguageServer.

🤝 Contributing

Your help is highly appreciated!

  • Join the conversation: GitHub Discussions
  • Report Issues or Submit Changes: see the Contribution Guidelines

📦 Installation

From VS Code:

  1. Launch Quick Open (Ctrl+P)
  2. Run
    ext install serkonda7.vscode-vba
    

Or install from Open VSX.

📜 License

Source code, grammars and snippets: Mozilla Public License (MPL-2.0).

Extension icon: CC-BY-4.0, courtesy of the GitHub Explore authors.

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