How to collapse all doc comments like "//"?
Answered
Hi
How to Collapse/Expand all Doc comments like "//"?
I know this:
but it just collapse work for the comments 1 like "/**/", not for the comments 2 like "//".
I want to collapse the all comments 2 like the comments 1.
How to do it?
Thank you.
Please sign in to leave a comment.
According to Oracle documentation, the comment should contain `/**` and `*/` comment separators to be recognized as JavaDoc. See https://docs.oracle.com/javase/8/docs/technotes/tools/windows/javadoc.html
So, IntelliJ IDEA collapses/expands all the JavaDoc comments correctly.
What I mean is that is there some shortcut can make all comment like "//" collapse or expand
Cmd+Shift+- (Collapse all) to collapse all, or Cmd+- (Collapse) to collapse selected areas
I know this shortcut
here is a common scenarios
I focus some code and I don't want to see the "//" comment
if Cmd+Shift+- , I can't see and focus on my new code
if cmd +-, I need to do at least 2 step
I see all the shortcut , can't find a shortcut which can do it only 1 step to collapse all "//" like the no.3 pic.
Maybe, it's a good idea to IDEA add the shortcut the Implementing this functionality。
Got your case. Please add a comment and watch this feature request: https://youtrack.jetbrains.com/issue/IDEA-84613
I write a comment in your url.
IDEA-84613 is pass 9 years....
Will it be implement in 3 years - -! ? orz
I have the same request but depending on where the comments are I have found that “ctrl+shift+NumPad *, 1” helps a lot.