Skip to content
← Back to Community
uncommenting
Profile icon
BSlaven

Can someone help me with uncommenting in repl.it?
I am using windows and the only way I can put a comment on a multiple
line code is by selecting everything and hitting "ctrl + k + c". But the problem comes when I try to uncomment that multiple line code. Any suggestions?
Thanks

Voters
Profile icon
ClimbPy
Profile icon
abdullahDahash
Profile icon
JadenTang2
Profile icon
burtongf
Profile icon
SteffenSchmiede
Profile icon
BSlaven
Comments
hotnewtop
Profile icon
MufrrehAli

Ctrl + K + U

Profile icon
uttamsingh2

@MufrrehAli thanks, bro.

Profile icon
Sigifs

german Keyboard STRG + '#'

Profile icon
Snowflake

Try with "ctrl + /"

Profile icon
BSlaven

@Snowflake That is the problem. I do not have a single key for "/" (forward slash). I had do switch my keyboard to Serbian because I need certaing letters for Serbian language on my keyboard. So now some keys on the keyboard are changed. For the same reason I have to use "ctrl + k + c" to comment. I cannot just use "ctrl + /". When for example I need "forward slash" I have to hit "shift + 7".

Profile icon
Snowflake

@BSlaven You could also maybe try with an on-screen keyboard but that won't be very comfortable.

Profile icon
suresh376

for comment above 3 lines of code hitting "ctrl+k" and "ctrl+c"
for uncomment "ctrl+k" and "ctrl+u" or "ctrl+k+u"

Profile icon
cemt

in mac Cmd+/ for command and when you press again it'll uncomment the selected rows or the line which cursor on it

Profile icon
Steven_The_GuyT

Couldn't you change your keyboard back to American keyboard and then press "ctrl + /"?

Profile icon
Noriixk

try crt k + u,

first select the text you want then use crtl + k + u
It'll uncomment

Profile icon
VadimFrolov

Add or remove /"multiplication sign" and "multiplication sign"/ at the beginning and at the end of the code:
let day = {
1:'a',
2:'s' }
let num = 1
console.log(day[num])

/'' let day = {
1:'a',
2:'s' }
let num = 1
console.log(day[num]) '
'/

Profile icon
GothamChess

Select all you want to comment then you can do Ctrl+/. Idon't know if that's better.

Profile icon
ShaluChaudhary1

Ctrl+K+U would work.

Profile icon
ertyaz

ctrl + K + U worked for me on win10 laptop

Profile icon
JadenTang2

Just do the undo button

Profile icon
ShaluChaudhary1

@JadenTang2 oh yeah! This is great...

Profile icon
dtolik

Ctrl + / works for me