tags:

views:

295

answers:

1

Is there a way to hide/unhide all comments in xcode source files?

This would be very helpful when working with code that has way too many comments added.

+1  A: 

You can use fold/unfold to hide/show comments using ⌃⇧⌘↑ and ⌃⇧⌘↓. This is also accessible through View --> Code Folding --> Fold/Unfold Comment Blocks.

Swingley
I know about comment folding, but unfortunately it doesn't fold single line comments (//) and the code I'm inheriting has a whole bunch of those, sometimes even for multi line comments.
lajos
Sorry, I don't think there's a way to do that.
Swingley