Integrating Nunjucks with IntelliJ IDEA / Webstorm

Just found a solution. Configure a custom extension with Twig files. It’s a template engine with similar syntax (but for PHP).

  1. add Twig Support plugin if necessary

  2. Go to Settings -> Editor -> File Types and add find Twig

  3. Add the custom pattern *.njk.

Now all *.njk files are parsed as Twig so in the end you have support for Nunjucks.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)