Collapsing arbitrary sections of code

   I'm working on refactoring an ugly piece of SQL code (6000+ lines).  Is there anyway to mark sections of code (say via #pragma) so that IntelliJ will let me temporarily collapse them the way it does say, Java imports?  I'd love to be able to at least take the 4500+ lines of declarations (mostly error handlers) and sweep them away so I have a more manageable amount of code to wade through.

1 comment
Comment actions Permalink

Hello David,

You can select an arbitrary block of text and fold it using View / Folding
/ Fold Selection action (Ctrl-period keyboard shortcut).

I'm working on refactoring an ugly piece of SQL code (6000+ lines).
Is there anyway to mark sections of code (say via #pragma) so that
IntelliJ will let me temporarily collapse them the way it does say,
Java imports?  I'd love to be able to at least take the 4500+ lines of
declarations (mostly error handlers) and sweep them away so I have a
more manageable amount of code to wade through.


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.