 <p>I don't think that it's possible from Code > Folding or using the icons from the left bar (collapse/expand), but you can do it in a harder way: manually.</p> <p>E.g.: </p> <ul> <li>select the try block</li> <li>Code > Folding > Fold Selection / Remove Section ( <kbd>Ctrl</kbd> + <kbd>Period</kbd>, where <kbd>Period</kbd> is the <kbd>.</kbd>)</li> <li>you'll see <code>...</code> instead of that block</li> <li>now that block also has the icons for collapse/expand on the left bar</li> </ul>