vscode vba

Visual Basic 2025-07-22

VBA Support for VS Code

Project Status

This project is in maintenance mode. Pull request are welcome and will be merged. Issues will be addressed and minor bug fixes may happen. However I am unable to further develop new features.

Please feel free to contribute.


For advanced features like a language server, I recommend checking out SSlinky/VBA-LanguageServer.

Key Features

Used for GitHub syntax highlighting

  • VBA syntax highlighting
  • Comprehensive snippets
  • Syntax highlighting for some dialects (community maintained)
    • WinWrap Basic (WWB)

Installation

Launch Quick Open (Ctrl+P) and execute this command:

ext install serkonda7.vscode-vba

Or download from Open VSX.

Contributing

Your contributions are always welcome and highly appreciated!

  • Discuss and Ask Questions: GitHub Discussions with community support
  • Report Issues or Submit Changes: Please check the Contribution guidelines

Snippets

The following snippets are available:

  • If
  • ElseIf
  • Else
  • Sub
  • Function

License

Source code, grammars and snippets are provided under the Mozilla Public License (MPL-2.0).

The icon is provided under CC-BY-4.0, courtesy of the GitHub Explore authors.

下载源码

通过命令行克隆项目:

git clone https://github.com/serkonda7/vscode-vba.git