PC shortcut ctrl + / for Comment/Uncomment not working

The link to the shortcuts help article “Do you have any keyboard shortcuts” - (Do you have any keyboard shortcuts?), does not seem to respond to the question by Ville.

  • I too need to press “shift” + “7” to get the “/” key and have spent some time online looking for how to comment/uncomment in different consoles.

Could this question either be addressed in that thread, or if the training console does not support this shortcut, could you update the instructions please?

3 Likes

Same thing is happening to me. Looked it online with no luck. Hope we can solve this soon (manually removing the # is annoying as the code usually gets some indention issues).

2 Likes

My issue is worse, the Ctrl + Shift + 7 does not work either.

Could this be due to different keyboards layouts?
Is there any solution for this?

Thank you for the help

1 Like

Hi,
Can you please try to use the following shortcut to see if that’s working?

Windows:
DEFAULT: “CTRL” + “/”
SINGLE LINE COMMENT: “CTRL” + “1”
MULTI LINE COMMENT: “CTRL” + “4”

Mac:
DEFAULT: “COMMAND” + “/”

Link: Do you have any keyboard shortcuts?

Best,
Rahul

I tried it, @rewani.r, and it did not work (Windows).

In my case, “ctrl” + “number” changes my browser’s tab to the corresponding number. For example:

  • “Ctrl” + “1” switches to my first tab.
  • “Ctrl” + “4” swtiches to my fourth tab.

@fcogaltam, can you try the “Alt + 3” for commenting and “Alt + 4” for uncommenting?
I am hoping this should work.

Hope it helps :slight_smile:

Thans, @rewani.r . I tried the following and none of them worked:

  • “Alt” + “1 to 9”

  • “Alt” + “Ctrl” + “1 to 9”

  • “Alt” + “Shift” + “1 to 9”

  • “Ctrl” + “1 to 9”

  • “Ctrl” + “Shift” + “1 to 9”

@fcogaltam I am sorry to hear that none of the recommended options are working for you.
Could you please try “CTRL” + " / (Forward Slash)" to comment your code?

Here are a couple of Stack Overflow resources that you might find helpful:

Stack Overflow Resource – 1
Stack Overflow Resource – 2