vscode-nunjucks icon indicating copy to clipboard operation
vscode-nunjucks copied to clipboard

how to add the formatter for 'nunjucks'-files?

Open see311 opened this issue 7 years ago • 4 comments

I have installed Nunjucks extension, but there is no formatter for 'nunjucks'-files installed. how to add the formatter for 'nunjucks'-files?

see311 avatar Jan 23 '18 03:01 see311

add in your USER SETTINGS

  "files.associations": {
    "*.njk": "html"
  },

lucasdu4rte avatar Jul 25 '18 02:07 lucasdu4rte

If I do this, the HTML is formatted, but not the nunjucks brackets and their contents. Like having {{ myvar }} instead of {{myvar}} for example or whatever you prefer. Is there any way to do that? I assume this extension would have to provide it, right?

totkeks avatar Oct 18 '18 11:10 totkeks

Don't know if this'll work, but you can try doing what this commit did: https://github.com/ronnidc/vscode-nunjucks/commit/cb1494303da06d8b4576c3bdac1f1dffd9d13e64

wesruv avatar Jan 21 '19 21:01 wesruv

I believe that formatting is broken.

rendall avatar Feb 02 '19 17:02 rendall