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.

 

0
7 comments

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

Note: The comment separators /** and */ must be present, but the leading asterisks on the intermediate lines can be left off.

So, IntelliJ IDEA collapses/expands all the JavaDoc comments correctly. 

0

What I mean is that is there some shortcut can make all comment like "//" collapse or expand

0

Cmd+Shift+- (Collapse all) to collapse all, or Cmd+- (Collapse) to collapse selected areas 

1

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。

 

 

0

Got your case. Please add a comment and watch this feature request: https://youtrack.jetbrains.com/issue/IDEA-84613

-1

I write a comment in your url. 

IDEA-84613 is pass 9 years....

Will it be implement in 3 years - -! ? orz

2

I have the same request but depending on where the comments are I have found that “ctrl+shift+NumPad *, 1” helps a lot.

0

Please sign in to leave a comment.