ronnidc / vscode-nunjucks

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

Comment shortcuts(CMD/CTRL+/) leads to html comment not nunjucks comments #8

Open bakso opened 7 years ago

bakso commented 7 years ago

You just try it...I thought if my file is Nunjucks template, the comment should be:

{# Loop through all the users #}

rather than:

<!--Loop through all the users-->

DO you know how to solved it?

bakso commented 7 years ago

Just modify the consequences in the package.json and .tmLanguage file:

scopeName: 'text.html.nunjucks' => scopeName: 'text.nunjucks.html'

Rumyra commented 4 years ago

This is a bug, in a regular html file I have the opposite happening, I get a nunjucks style comment rather than an html one. I've had to disable the extension.

Pls fix, thanks.