I've always been frustrated by how low-tech the dev environment feels for PICO-8, so I finally decided to do something about it. Introducing:
PICO-8 Language Server for VSCode
pico8-ls is a full-featured language extension for VSCode. It gives the full IDE experience, as if you were developing with Javascript, Java, Python, C#, etc.
Download here: pico8-ls - VSCode Marketplace
This extension has full support for the PICO-8 dialect of Lua - which means you don't have to move your code into a .lua file, or go through and remove all the += to get the Lua extension to work!
Here are some other useful features:
- Go to definition
- Find references
- Warning on undefined variable usage
- Get documentation for built-in functions by hovering over them
- Support for "#include"ing other files
Demo of hover-docs, auto-complete, and signature help:
My most proud achievement is getting the #include statements to work, since go-to-definition and find-references both work across #include file boundaries. Demo of that working:
Anyways, I hope you find it useful! If you find any issues, please file an issue for them on GitHub:
Dude, very nicely done. Love that the outline works properly now and the bread crumbs. Hover help is a bonus. Great quality of life boost here. Bravo!
[Please log in to post a comment]