Jinja in YAML syntax highlighting in PyCharm Pro

Jinja in YAML syntax highlighting in PyCharm Professional

  • Useful for Jinja (templates) fields in YAML configuration.
  • Colors for easier identification of syntax.
  • Basic autocomplete of syntax.
  • Basic syntax errors detection.
  • Unfortunately, works only for Professional Edition, not in Community Edition.

Before:

Screenshot 2024-03-26 at 03.52.32

After:

Steps:

  1. Open SettingsLanguages & FrameworksTemplate Languages
  2. Template language set to Jinja2
  3. Click + in Template File Types and add YAML

Docs: Template Languages | PyCharm Documentation

1 Like