About 216,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. How do I create multiline comments in Python? - Stack Overflow

    You can and lines of code using comments or uncomments the current line or several selected lines with single line comments . for a selected block of source code in a Django template …

  4. 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. …

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

    For python code, the "comment block" command Alt + Shift + A actually wraps the selected text in a multiline string, whereas Ctrl + / is the way to toggle any type of comment (including a …

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

    Apr 15, 2016 · 83 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. How to quickly Comment and uncomment a code? - Stack Overflow

    Apr 3, 2019 · 16 If you are using visual studio as your IDE you can use the following: Ctrl+K+C to commment and Ctrl+K+U to uncomment. If using pycharm or VS Code: Use Cntrl+/ to …

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

    Mar 2, 2010 · A docstring isn't a comment, and people often want to include things in function-level comments that shouldn't be part of documentation. It's also commonly considered that …

  9. 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 …

  10. 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.