VBA Pro Extension for VS CodeProvides Visual Basic for Applications (VBA) language support in Visual Studio Code using a Language Server Protocol (LSP) compliant backend. We all know that VBA is a dinosaur from the '90s, but it doesn't have to feel like one. Features
1Currently full document PREVIEW Definition ProviderThis extension now supports definitions, i.e., following a name to a declaration. Pressing F12 will jump you to the relevant method or variable declaration. This is a preview feature and may not work 100% as expected. If bugs are encountered, please take the time to raise an issue on the repo. PREVIEW Code RefactoringThis extension now supports Rename requests, i.e., using F2 to rename an element. It will find the all instances of the name throughout the workspace and rename it. Preview LimitationsKnown limitations:
Web SupportThe VBA Pro Extension offers limited support for web environments (e.g. vscode-dev). This includes syntax highlighting and snippets. Syntax HighlightingThe most complete and bug-free TextMate grammar for VBA out there. Semantic HighlightingTextMate does a great job with syntax highlighting but there are some things it can't know. Semantic highlighting is resolved by the language server and helps support where context is required. Folding RangesFolding ranges help organise code, collapsing things out of the way when you don't need to be looking at them. Code SnippetsA small but growing collection of highly useful code snippets. The idea is to keep these to a "rememberable" level, but if there's something you use all the time and you think it's missing, I'd love to hear from you. Icon ThemeVS Code supports two ways of contributing icons.
This extension provides both methods. Users with no icon pack installed can use the icon pack provided by this extension to see a visual difference between classes, modules, and forms. Users who prefer to use an alternative icon pack can fall back to the language assigned icon. Document SymbolsDocument Symbols allow you to view a structured outline of your code in the VS Code Outline view and breadcrumbs. These make it easy to understand and navigate files. Document DiagnosticsDisplays warnings and errors in the Problems panel, as well as underlining the relevant sections in your code. Only a few diagnostics have been implemented to date, however these will be fleshed out over time. Document FormattingWhole of document formatting is supported with
Coming Soon
Installation
ContributingContributors welcome! Please see contributing.md. |