I know that it is possible in PhpStorm to remove comments like these with the plus and minus signs on the left:
/*
This is
a comment
*/
But at the moment, I have some code with these single line comments in it.
//Some text explaining the code beneath it
$foo = bar;
//Another piece of text explaining some code
$bar = foo;
Is there a shortcut in PhpStorm to hide the single line comments (the ones that are created with "//")? When you have a few of these, it's not really bothering me, but when there are more comments than code, it gets a little bit annoying.
Thanks in advance.
Please vote for IDEA-117927
Workarounds:
1.use custom folding regions, like:
//region Some text explaining the code beneath it
//some more text
//endregion
$foo = bar;
2.change comments color to make them invisible (https://youtrack.jetbrains.com/issue/IDEA-106542#comment=27-497674)