intellij-ideacommentskeyboard-shortcuts

IntelliJ shortcut to comment a line


There is a way in WebStorm to comment or uncomment a specific line or selected block of source code with shortcut?
I tried to use CTRL + / but it doesn't work for me.


Solution

  • Try to use:
    Ctrl+/ for Line Comment
    or
    Ctrl+Shift+/ for Block Comment
    or
    Set you own keyboard shortcut in Settings from File -> Settings... -> Keymap.
    Then search for "comment".

    Note: It's the numpad / that works.

    References:
    https://www.jetbrains.com/help/idea/mastering-keyboard-shortcuts.html