Is there a way in IntelliJ to comment and un-comment blocks of code with the // characters?
For example, assume that I have the following code fragment:
I'd like to highlight the first 5 lines of this fragment and then run some sort of IntelliJ tool on it so that after the tool completes, the code looks like this:
Later, I'd like to highlight the same 5 lines, and then run the inverse function to remove the comments and turn it back into the original code fragment.
Yes, I know that I can use +/ ... /+ comments, but I'm looking for the specific functionality that I have described here, using +//+ comments.
Is this possible in IntelliJ?
By the way, I believe that either NetBeans or Eclipse offers this functionality, but I don't want to use either of these, because I love working in IntelliJ.