Skip to content

Tera Template Syntax Highlighting for Visual Studio Code

License

Notifications You must be signed in to change notification settings

karuna/tera-vscode

Repository files navigation

Tera extension for VS Code

VS Code extension for syntax highlighting and formatting [Tera][tera] templates. Based on https://github.com/danielchatfield/atom-jinja2.

Features

Syntax highlighting for Tera Template.

Screnshot

Requirements

Visual Studio Code. Version 1.19.1 as this extension made.

Snippets

Snippet Description
xx {{ }}
block {% block %} {% endblock %}
inblock Same as above but on a single line
if {% if %} {% endif %}
ifi Same as above but on a single line
ifelse {% if %} {% elif %} {% endif %}
else {% else %}
filter {% filter %} {% endfilter %}
forloop {% for in %} {% endfor %}
extend {% extends "" %}
include {% include "" %}
import {% import "" %}
macro {% macro %} {% endmacro %}

Release Notes

0.0.7

  • Reregister the .tera extension
  • Removed the unused dependencies

0.0.6

  • Tera template file is replaced with HTML for syntax highlighting
  • Snippets work in HTML

0.0.4

  • Added snippets support.

0.0.3

  • Added formatting support.

0.0.1

  • First release. May or may not be maintained.

For more information

Enjoy!

About

Tera Template Syntax Highlighting for Visual Studio Code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published