This extension adds language colorization support for the Jinja template language to VS Code.
First, you will need to install Visual Studio Code0.10. In the command palette (cmd-shift-p) selectInstall Extensionand chooseJinja.
The downside of the Jinja language is that there is no defined file extension and as such, there is no way to detect it automatically in all cases. This extension will look for it in two file extensions – .html and .j2. The .j2 file extension is heavily used with Ansible which uses the Jinja2 engine underneath.
If you are interested in making this extension better, I will gladly take pull requests that expand it to add intellisense, hovers and validators. If youre not familiar with working on Visual Studio Code extensions, check out the VS Code extenders documentation at
Go to the Debug viewlet and selectLaunch Extensionthen hit run (F5). This will launch a second instance of Code with the extension from the first window loaded.
As you make changes, you can also reload (Ctrl+RorCmd+Ron Mac) the second Code window to load any changes.
If you have a previous release of the extension installed and you perform these steps, Code will temporarily override the locally installed version instead for the one youre working on for the second window. The first (main) window will remain to have the locally installed, prior version installed and enabled until an update is available.