About 192,000 results
Open links in new tab
  1. How to comment out a block of code in Python [duplicate]

    Is there a mechanism to comment out large blocks of Python code? Right now, the only ways I can see of commenting out code are to either start every line with a #, or to enclose the code …

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

    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 …

  3. What is the proper way to comment functions in Python?

    Mar 2, 2010 · The correct way to do it is to provide a docstring. That way, help(add) will also spit out your comment.

  4. How do I create multiline comments in Python? - Stack Overflow

    In any case, your text editor should also be able to easily comment-out a selected region (by placing a # in front of each line individually). If not, switch to a text editor that does. …

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

    741 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 …

  6. Shortcut key for commenting out lines of Python code in Spyder

    Apr 15, 2016 · I recently changed from the Enthought Canopy Python distribution to Anaconda, which includes the Spyder IDE. In Canopy's code editor, it was possible to comment and …

  7. python - What is the shortcut key to comment multiple lines using ...

    Feb 8, 2022 · This heavily depends on where you're writing your python code. If you're writing it in Notepad, there won't be a shortcut for commenting a line. However, if you use an IDE, you will …

  8. Comment/Uncomment multiple lines in JupyterNotebook hotkey

    May 12, 2021 · CTRL+/ for comment and uncomment multiple lines you can press 'h' anywhere in command mode, you can find all the shortcuts of jupyter.

  9. How do I block comment in Jupyter notebook? - Stack Overflow

    I want to comment out a block of multiple lines in Jupyter Notebook, but can't find out how to do that in this current version. It used to be in one of the drop down menus but is no longer there. …

  10. syntax - Mid-line comment in Python? - Stack Overflow

    Mar 6, 2015 · 89 I'm wondering if there is any way to comment out part of a line, like you can do in c++ with /*this*/. The only comments I know about are # this which always goes to the end of …