This extension helps you manage your templated files by showing you the values of the different templated variables.
The best use-case would be to have a folder with templated files, and other ones with files containing the different possible values of the variables.
The templating format used is Jinja, used for example by Ansible playbooks.
Important
The templated files and the variables values have to be in the same workspace. If not, please use multi-root workspaces
Requirements
The configuration files have to be yaml files, with the.yml
extension
Run the VSCode command Template Finder: Activate in this workspace
Sometimes variables are not defined in your workspace but by an external tool. For example an ansible extra-var passed in command-line. To avoid showing these variables as undefined, you can set:
"templateFinder.variables.externalVariables": [
"ansible_env\\..*",
"my_external_variable"
]
If you notice any irregularities or have any idea on how to improve this extension, please open an issue on Github