PyCharm Edu 4.0 Help

Commenting and Uncommenting Blocks of Code

Basics

You can comment or uncomment the current line or selected block of source code.

Commenting and uncommenting lines of code

Do one of the following:

  • On the main menu, choose Code | Comment with Line Comment.
  • Press Ctrl+Slash.
    py_commentCode1.png

Commenting and uncommenting blocks of code

To add or remove a block comment, do one of the following:

  • On the main menu, choose Code | Comment with Block Comment.
  • Press Ctrl+Shift+Slash.
Last modified: 15 December 2017