There is a way in webstorm to comment or uncomment a specific line or selected block of source code with shortcut? I try to use CTRL + / but doesn't work for me
Comment out a line or selection of code. If you want to temporarily comment out a section of code, you can do so by first selecting the section (remember to use Ctrl + W / Shift + Ctrl + W) and then hitting Ctrl + /. If you want to comment out the current line of code, simply hit Ctrl + / too — no selection needed.
An alternative way to comment any block of code is to select it, press Alt+Enter and choose Comment selection. The same way works for uncommenting code inside a block comment - set the caret anywhere in the block comment, press Alt+Enter and choose Uncomment.
The default shortcuts are Ctrl+K,C to comment and Ctrl+K,U to uncomment.
If you select a block of code and use the key sequence Ctrl+K+C, you'll comment out the section of code. Ctrl+K+U will uncomment the code.
References
https://www.jetbrains.com/help/idea/mastering-keyboard-shortcuts.html
Try to use Ctrl+Slash or Ctrl+Shift+Slash for block comment
If this doesn't work show in your Setting -> Keymap -> Search comment
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With