Ask coding questions

← Back to all posts
Please tell me how to comment out the entered code at once.
ryota23 (0)

Please tell me how to comment out the entered code at once.
I'm using Google Translate, so it may not be correct ...

Answered by RYANTADIPARTHI (6010) [earned 5 cycles]
View Answer
Comments
hotnewtop
RYANTADIPARTHI (6010)

Solution

just hightlight the code you want to comment, and hit cntrl + /. That' s it.

It should work

Coder100 (17107)

ctrl + / is the shortcut you are looking for!

RhinoRunner (837)

In python, multi-line comments are like this:

print('this is not in a comment')
"""
print('this is in a comment')
print('it is a multi-line comment')
"""
print('this is not in a comment')

For more information, go here.

DEMONul1234 (53)

If you want to comment out the entire code at once just select the entire conde and pres ' 3 times.