Convert your file indented with space (or tab) to a .tree file.
- Clone this repo.
git clone https://github.com/clement-ux/tree-builder.git
cd tree-builder
-
Write your file (don't matter which extension).
-
Run the script (don't forget to change the file name on the first line).
python tree-builder.py
- Generated .tree file will be on the same folder as your file name, with same name, but with .tree extension.
Use this extension on vscode marketplace for a better syntax highlighting. https://marketplace.visualstudio.com/items?itemName=CTC.vscode-tree-extension
This script works well on major simple case but is still buggy on some edge case.