A little while ago, I came across Visual Studio Code
(not to be confused with the Visual Studio, Microsoft's flagship dev tool). I've really enjoyed playing with Code over the past several weeks. A few notable features are:
* Very clean interface!
* Cross-platform (windows, linux, mac)
* Relatively lightweight
* Open source
* Has an ever-increasing set of extensions
* Actively being developed/maintained
To get a little deeper into the inner workings of the tool, I decided to write a simple extension that provides formatting any syntax highlighting for P2 code. If you are interested in trying it out, you can find it at
So far, it's fairly simple:
* Ensures tabs are 8 spaces
* Syntax highlighting
* The repository doesn't yet contain everything necessary for compiling the extension.
* However, you will find a p2asm-0.0.1.vsix, which is an extension package. To install, just type "code p2asm-0.0.1.vsix" at the command line.
* caveat: the expected file extension is "p2asm", not "spin". "spin" can be easily added, but I was using "p2asm" to avoid confusion with P1 code that I have floating around.
In the long run, I'd like to add the following:
* Intellisense (or is it CodeLens?) integration
* Snippets for common patterns
* Custom theme for improved syntax highlighting
* Compile (requires improved pnut)
* Load binary (requires improved pnut)
* And more!