0

Hey just a quick question, how do you comment a large part of code? If we have some code like this:

x = 2
print(x)

how would i comment it like this: (without commenting one line at a time)

# x = 2 
# print(x) 

Thanks for the help!

Nomadck
  • 21
  • 4

1 Answers1

1

Select the block of code that you want to comment and Press:

Ctrl + K + C

And to uncomment the block of code press:

Ctrl + K + U

RobC
  • 22,977
  • 20
  • 73
  • 80
Carlos G
  • 9
  • 2