MIPS Assembly FormatterFormats MIPS assembly (should be labelled as .asm) files with proper indentation and alignment. UsageInstall the extension. Open a The formatter will automatically:
The formatter isn't perfect. Also, MIPS asm formatting isn't universally agreed upon. You're welcome to try AngaBlue's formatter if you like that one better. To keep custom formatting, wrap the block of code as follows
To keep custom comment indentation, use the special directive
See This extension does not do syntax highlighting or linting. It assumes your code is correct. You can use dollar signs or not use dollar signs for registers, the formatter doesn't care. CompilingTo compile and test, run The BugsAgain, I make no guarentee this formatter is perfect. If it breaks on some code, and wrapping code in the "do not format" blocks is too annoying, please submit a bug report/issue/pull request here: https://github.com/CaptainChicky/mips-vsc-asm-formatter If it's urgent, email me lol (check CreditsThis extension was build on the base code (v1.0.0) written by NotAFlyingGoose in the following unfortunately abandoned repository: https://github.com/NotAFlyingGoose/AsmFormat I make no claims that I wrote all of the code, and I only made additional changes detailed in the changelog in subsequent v1.1.0 and v1.2.0. |