ronnidc / vscode-nunjucks

Nunjucks for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=ronnidc.nunjucks
65 stars 18 forks source link

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

Open see311 opened 6 years ago

see311 commented 6 years ago

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

lucasdu4rte commented 6 years ago

add in your USER SETTINGS

  "files.associations": {
    "*.njk": "html"
  },
totkeks commented 5 years ago

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?

wesruv commented 5 years ago

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

rendall commented 5 years ago

I believe that formatting is broken.