ronnidc / vscode-nunjucks

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

Nunjucks style commenting out overrides default html behavior #30

Open mariomui-viscira opened 3 years ago

mariomui-viscira commented 3 years ago

After adding this extension, commenting out a line in html will result in {# #} rather than the desired

encapsulation. Option A: Alter default behavior. Remove the html extension from default file associations. Option B: Update Readme. Inform users on how to exclude the .html from default file associations so commenting out in normal html files results in expected/natural behavior. https://github.com/ronnidc/vscode-nunjucks/issues/13
baticodes commented 2 years ago

Same issue here

baticodes commented 2 years ago

For anyone arriving here because of this issue like me. Adding this association on json settings made the trick for me:

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