You can comment and uncomment lines of code using &shortcut:CommentByLineComment;.

&shortcut:CommentByLineComment; comments or uncomments the current line or several selected lines with single line comments ({# in Django templates, or # in Python scripts).

Pressing &shortcut:CommentByBlockComment; for a selected block of source code in a Django template surrounds the block with {% comment %} and {% endcomment %} tags.