vscode-django / vscode-django

Beautiful syntax and snippets for perfectionists with deadlines
https://marketplace.visualstudio.com/items?itemName=batisteo.vscode-django
MIT License
173 stars 41 forks source link

Implement 'Single' Line Comment feature #179

Open SomeAB opened 4 months ago

SomeAB commented 4 months ago

Please consider adding this feature now. Old thread from 6-7 years ago: https://github.com/vscode-django/vscode-django/issues/9

{# this is a one line comment #} this should help speed up the work of those working on Django templates

Currently, if you type comment .. it gives you an option to only add the multi-line comment, which is longer {% comment %}{% endcomment %}

its 4 alphabets vs 26 alphabets!

Also, there is no 'auto-closeoff' of the tag after typing {#

EstiShleifstein commented 3 months ago

There is a shortcut feature similar to comment + tab for inline comments as well.

All you have to do is type comm + tab and it autocompletes, resulting in {# ... #}.