Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Repl.it Python 3 Short cut Comment/Uncomment a block

Tags:

python

replit

I searched for a shortcut command that would comment/uncomment a block for repl.it.
I'm working on a python 3 project and I often need to comment a big section of my code.

Is there a shortcut command for that?

like image 289
George Lashterg Avatar asked Apr 07 '26 00:04

George Lashterg


2 Answers

It's on their help page

Like most code editors.

Ctrl-/ | Command-/ | Toggle comment

like image 85
OneCricketeer Avatar answered Apr 08 '26 13:04

OneCricketeer


To comment a block of Python code on Repl on a windows machine:

  1. Select block of lines to comment
  2. Type "Ctrl + K" followed by "Ctrl + C"

To uncomment use: "Ctrl + K" followed by "Ctrl + U"

like image 31
José Pedro Avatar answered Apr 08 '26 14:04

José Pedro



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!