About 51 results
Open links in new tab
  1. How do I create multiline comments in Python? - Stack Overflow

    111 Python does have a multiline string/comment syntax in the sense that unless used as docstrings, multiline strings generate no bytecode -- just like # -prepended comments. In effect, it acts exactly …

  2. Is there a shortcut to comment multiple lines in python using VS Code ...

    Sep 26, 2022 · Instead of indivually typing out a hash tag in front of each line, is there a way to select a block of code and comment/uncomment everything by only pressing a couple shortcut keys?

  3. Multiple line comment in Python - Stack Overflow

    Jan 21, 2014 · Is there a way to give multiple line comments in Python? Like it is in case of C/C++ : /*comment*/. Or does it have to be marked "#" in front of every line?

  4. Python comment multiple line - Stack Overflow

    Many IDEs/text editors allow for highlighting multiple lines and hitting a key sequence to comment them all out with #, so you don't need to do each line individually. While triple-quoted strings are used as …

  5. python - Is there a way to put comments in multiline code ... - Stack ...

    Jul 13, 2013 · Python way is with # on every line if you want to comments something or for inline comments everything after # is ignored. If you really want to comment a multiline statement that is …

  6. How to comment out a block of code in Python [duplicate]

    In Eclipse + PyDev, Python block commenting is similar to Eclipse Java block commenting; select the lines you want to comment and use Ctrl + / to comment. To uncomment a commented block, do the …

  7. python - Visual Studio Code Comments - Stack Overflow

    Jul 28, 2022 · How can i select multiple lines in my python code and comment them with just one click enter image description here

  8. How can I use the shortcut ctrl + # to comment multiple lines of code ...

    Jul 24, 2021 · When I use Jupyter Notebook inside the browser or inside Google Colab I can comment multiple lines of code by selecting them and pressing crtl + #. This also sometimes worked in Visual …

  9. How can I comment multiple lines in Visual Studio Code?

    I cannot find a way to comment and uncomment multiple lines of code in Visual Studio Code. Is it possible to comment and uncomment multiple lines in Visual Studio Code using some shortcut? If …

  10. python - How to comment multiple lines of code in visual studios ...

    Jun 8, 2021 · Normal Python commenting across multiple lines is """ triple quotes at the start of the comment and """ another set of triple quotes at the end. Doesn't matter if they are double or single …