comment python code in visual studio code
<p>My visual studio code comment python code with <code>'''</code> instead of using <code>#</code> when try to comment a block of code with the key combination <code>ctrl + shift + a</code>. I have ubuntu 16.04</p>

<p>This has nothing specifically to to with Visual Studio, but a result of the python commenting styles. Generally, single line comments are done with the pound (or hash) symbol:</p>

<pre><code># This is a comment
</code></pre>

<p>In contrast, three quotation marks (either ''' or """) can be used to easily produce multi-line comments.</p>

<pre><code>'''
This is also a comment.
However, this comment crosses multiple lines
'''
</code></pre>

<p>or</p>

<pre><code>"""
This is yet another multiline comment
For long comments the quotation marks are much easier than # comments.
"""
</code></pre>

<p>Hope this helps.</p>

python vscode