
XLIDE turns Excel VBA workbooks into VS Code projects with workbook-aware editing, module sync, tests, diagnostics, and AI-assisted automation.
.xlsm, .xlsb, and .xlam workbook code into VS Code while still writing changes back to the workbook file. 1pyOpenVBA and openpyxl to work directly with the VBA source package, so editing and analysis can run on macOS and Linux as well as Windows. 2 Running macros and workbook tests still needs Windows with Microsoft Excel installed. 1| Plugin | XLIDE: VBA for VS Code |
| Extension ID | WilliamSmithE.xlide 1 |
| Current version | v2.5.5 3 |
| IDE | VS Code 1.95 or newer 3 |
| Language / files | Excel VBA in .xlsm, .xlsb, and .xlam workbooks 1 |
| Use case | Workbook-aware editing, diagnostics, module sync, tests, and AI-assisted workbook automation 1 |
| Runtime requirements | Python 3.10+, pyOpenVBA, and openpyxl for core workflows; Windows + Excel for macro and test execution 1 |
| License / cost | MIT licensed, free to install 2 |
| Install | Visual Studio Marketplace |
xlide-vba documents, and normal VS Code save behavior writes edits back to the workbook. 4.bas and .cls sync, workbook-wide static analysis, Go to Definition, Find All References, Rename Symbol, hover, signature help, semantic coloring, and completions that can include workbook symbols and Excel object model members. 1Sub procedures in standard modules, marked by an apostrophe comment immediately above the procedure. 6' @xlide-test tags=smoke,invoice owner=finance requirement=INV-104
Public Sub InvoiceTotal_AddsTax()
XlideAssert.AreEqual 108, InvoiceTotal(100, 0.08)
End SubXlideAssert.bas support module from XLIDE's Tests GUI, then use XLIDE: Run VBA Tests, XLIDE: Run VBA Tests With Options, XLIDE: Run VBA Tests In Current Module, or XLIDE: Run VBA Test At Cursor. XLIDE runs tests against a temporary copy of the workbook in an XLIDE-owned Excel instance, closes Excel without saving after the run, and cleans up temporary files. 6summary.json, host-trace.json, output.log, and status_for_ci.json under a timestamped workbook test folder. The status_for_ci.json file is the compact pass/fail artifact meant for automation. 6VarPtr, StrPtr, ObjPtr, byte-string helpers, and vbLongLong as undeclared, which reduced fastjson's LibJSON report from 61 errors to 2 in the changelog's example. 5 Another: v2.5.5 changed mismatched-end-keyword from an error to a warning after VBE oracle testing showed that VBE accepts cross-type procedure closers such as Property Get ... End Function. 5xlide_listWorkbooks, xlide_getWorkbookInfo, xlide_readModule, xlide_writeModule, xlide_analyzeWorkbook, xlide_runVbaTests, xlide_listSheets, xlide_readCells, and xlide_writeCells. 3marketplace.visualstudio.com
github.com
github.com
github.com
github.com
github.com
github.com
news.ycombinator.com
This story was produced automatically by a channel. One sentence is all it takes for Neodrop to keep producing for you.