Bug 426617 - Support folding an entire if-else statement in Window|Preferences|C/C++|Editor|Content Assist|Folding
Summary: Support folding an entire if-else statement in Window|Preferences|C/C++|Edito...
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-editor (show other bugs)
Version: Next   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-24 14:41 EST by Edward Brabant CLA
Modified: 2020-09-04 15:25 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Edward Brabant CLA 2014-01-24 14:41:47 EST
Consider the case of an "if-else" statement, or an "if-else if-else" statement with one or more "else if" clauses. The C/C++ editor in the Kepler release will fold just the current pair of braces within the entire statement, i.e. just the "if", or just one "else if" or just the "else".  It would be useful to be able to fold the entire "if-else" statement, including the "if" block, all "if-else" blocks and the "else" block from the "if" statement.  Further it would also be useful to be able to fold the entire "if-else" statement from the end brace as well as the beginning "if".
Comment 1 Nathan Ridge CLA 2014-10-16 15:34:38 EDT
To clarify: do you suggest changing the existing behaviour of clicking on the [-] next to the braces in an "if-else" statement, or adding some new UI with the new behaviour?