Online VHDL formatter written in Typescript
Try it here: https://g2384.github.io/VHDLFormatter/
Simply download/clone this repository, and open the index.html file.
index.html: html + javascript. Collect settings from UI, call the beautify function, load/save/update cached settings.main.ts: typescript. Some code required byindex.htmlare moved here.VHDLFormatter.ts: typescript. Define classes, format VHDL codetests: folder. Contain all test files- *.test.ts: typescript. Proper test files.
VHDLFormatterUnitTests.ts: typescript. Handcrafted, crude tests.
VHDLFiles: vhdl. Contain complicated VHDL files which I don't want to lose.
Use Visual Studio Code to open the repo folder.
Tests must be run before each commit.
- open repo folder with Visua Studio Code
- click
Run (Ctrl + Shift + D) - select
Run Unit Testsconfiguration - click
Start Debuggingbutton
- open repo folder with Visua Studio Code
- click
Terminal->Run Task... - select
npm: test jest