vscode-nunjucks
vscode-nunjucks copied to clipboard
Emmet is not working with nunjucks files
No generally there are issues with intellisense issue#3
I wanted to say that Emmet is working with nunjucks files
VSC update the emmet to v2.0. U can check it in
https://code.visualstudio.com/blogs/2017/08/07/emmet-2.0#_other-changes
it works fine now
Hi, not working for me. Have I got to install something to make it work?
it works vscode issues 1689
// settings.json "emmet.includeLanguages": { "nunjucks": "html" }
will this work regardless of file extension? i.e. *.njk
it works vscode issues 1689
// settings.json "emmet.includeLanguages": { "nunjucks": "html" }
will this work regardless of file extension? i.e. *.njk
It seems to me that the value html
refers to the language emmet will autocomplete (HTML as opposed to CSS), not the extension of the file itself.
it works vscode issues 1689
// settings.json "emmet.includeLanguages": { "nunjucks": "html" }
It worked for me, thank you!
// settings.json "emmet.includeLanguages": { "nunjucks": "html" }
It worked for me,thanks
Any tips on getting this to work in Atom?
Thanks
For me
...
"njk": "html"
...
instead
...
"nunjucks": "html"
...
The above command works provided you have the correct keybinding for Emmet expand
. I had to press CMD+e
to expand.
Tip: open the command palette CMD+P
and search for Emmet expand
to see the associated keys
I tried both "nunjucks": "html"
and "njk": "html"
and neither worked.
But in in the bottom right corner of vs code (blue menu) there is an option change 'language mode' from "plain text" to "HTML" this seemed to do the trick.
(you could also do this in the normal setting (not the actual JSON file) if you search for "emmet")
If you are using UI just add it in the list or if you are using json https://github.com/ronnidc/vscode-nunjucks/issues/7#issuecomment-379519584 would be useful
I tried both
"nunjucks": "html"
and"njk": "html"
and neither worked.But in in the bottom right corner of vs code (blue menu) there is an option change 'language mode' from "plain text" to "HTML" this seemed to do the trick.
(you could also do this in the normal setting (not the actual JSON file) if you search for "emmet")
Thanks! This worked for me!!
Thank you lad! Worked like a champ!
Adding a file association worked for me:
"files.associations": { "*.njk": "html" },
I tried both
"nunjucks": "html"
and"njk": "html"
and neither worked.But in in the bottom right corner of vs code (blue menu) there is an option change 'language mode' from "plain text" to "HTML" this seemed to do the trick.
(you could also do this in the normal setting (not the actual JSON file) if you search for "emmet")
THIS! lol I could not figure out what the issue was but once I switched it to HTML, the settings.json code worked. I selected "Configure file association for '.njk'" so I wouldn't have to keep changing this each time.
Adding a file association worked for me:
"files.associations": { "*.njk": "html" },
This was the only way that worked for me for some reason...