Xcode needs an option to suppress display of comments

Originator:rainerbrockerhoff
Number:rdar://17717348 Date Originated:7/17/14
Status:Duplicate/8099547 Resolved:
Product:Xcode Product Version:6
Classification:Enhancement Reproducible:
 
While detailed comments are often useful when first reading a source code file, if later one wants to see the broad outline of a function or method it would be useful to suppress display of comments temporarily.

My suggestion would be, once the option to suppress comments is activated, to substitute all consecutive comment lines by a single line with a "//" inside a gray oval button, and also substitute comments at the end of a line with the same button. Clicking on such a button would pop up a small window containing the comment(s).

Comments

Folding can already do this for multi line comments.

Create a multi line comment in the C style.

Look in the gutter. You can fold the comment like a block of code.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!