The following workflow outlines how I use Leasot in my daily workflow w/ VSCode.
There are two unique parts that I use
-
Install Leasot
-
One of the features of Leasot is the ability to generate a formatted markdown file. I use a tool which displays markdown in the terminal called Terminal Markdown Viewer
-
Next step is to setup an npm task in my package.json or simple terminal script
leasot -x './src/**/*.*s*' --tags review -r vscode > TODO.md && mdv -c 120 TODO.md
- If you wish to add custom
tags
you can do something like (addingidea
tag)
leasot -x './src/**/*.*s*' --tags idea review -r vscode > TODO.md && mdv -c 120 TODO.md
This will add idea
to the output (TODO and FIXME will always be there)
NOTE: When displaying the source files which contain your tags, you can Command-Click on the source file and it will be opened within VSCode Editor
There is a VSCode extension which can be used to help display TODO items, etc.
TODO Highlight will display your desired tags in various colors. I use this in conjunction with the above workflow so I can better identify the tags within my code.