Skip to content
Sign upLog in
← Back to Community

Commenting out your work

Profile icon
Cbanks22

Does the free version allow you to comment out your work by highlighting it? Or do I need to upgrade my repl.it account so I can?

Answered by theangryepicbanana [earned 5 cycles]
View Answer
Voters
Profile icon
MuskanChau2512
Profile icon
zgalloway20
Profile icon
malavanrajaratn
Profile icon
KyliaBenjamin1
Profile icon
shubhrakantighosh
Profile icon
caaviyan26
Profile icon
EidWanna
Profile icon
Preron
Profile icon
CyberChoom
Profile icon
BhavyaKamath
Comments
hotnewtop
Profile icon
theangryepicbanana

I don't think repl.it has that?

Profile icon
Cbanks22

@theangryepicbanana
I am doing app academy and my instructor selects the example he has just shown and I think there is a short key because he then makes the whole section a comment with // on each line.

Profile icon
theangryepicbanana

@Cbanks22
ok so now that I'm trying it, here's how you do it:

  1. highlight the code you want to comment with the cursor.
  2. hold the Control key (or meta key on macs) and then press the "/" key.
  3. done.
Profile icon
Cbanks22

@theangryepicbanana
you're awesome thank you super appreciate it I gave up fiddling with it

Profile icon
theangryepicbanana

@Cbanks22
yay no problem (btw mark my answer as "best answer" if it helped)

Profile icon
Cbanks22

@theangryepicbanana
did it thanks again!

Profile icon
rodrigopascoal
  1. Highlight the code you want to comment
  2. CTRL + k and then CTRL + c
Profile icon
AnsarBM

@rodrigopascoal
thanks it worked.

Profile icon
JoeHarrison1

can you undo ctr + k + u

Profile icon
JOKER-TEAMTEAM
Profile icon
HalaAbdeen

ewfewf

Profile icon
AliceLove1

This is a great article and I am very impressed with how you write about smash karts. I always follow and support you.

Profile icon
IanCamu3

aaaaaaaaa

Profile icon
alexparker10

I was searching for Filmora 11 as I really like video editing and my friend suggested me to use filmora 11 discount code to get more discounts as I tell him that I want to open my YouTube channel and while searching for that I landed on this website I don't know how but I was glad to visit here as I like to read on new topics and I get it from this website.

Profile icon
JohnMolesworth

It works intermittently for me with about a 1/4 success rate - it's super annoying. If it doesn't work I'm presented with a shortcuts dialogue and when I exit out of that I'm taken to the top of my code and the code I had selected for commenting out has been deselected, I then have to scroll through my code, find the block, reselect and hope that it doesn't happen again (which it almost always does).

Profile icon
[deleted]

ctrl + k + c to comment out many lines...
Thanks.
...

Profile icon
tejasbansal3007

d