Bug 258965 - Custom Code Folding
Summary: Custom Code Folding
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 6.0   Edit
Hardware: All Linux
: P3 enhancement with 10 votes (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords: helpwanted
: 331405 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-12-16 11:19 EST by Jeff CLA
Modified: 2020-09-04 15:27 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff CLA 2008-12-16 11:19:15 EST
I'm sure you get one of these requests per day. I used the search feature (not very effectively).

I use the CDT every day, and I love it. It's great. Someone else I work with uses emacs, and they have these things to segment their code:

// {{{ Accessors


..


// }}}


// {{{ Foo Bars


..


// }}}


And they can collapse them in emacs. I'd really like to be able to collapse them in eclipse too (along with the other two or three people that work on his code in eclipse). After searching the endless plains of the internet, all I can find is documentation of the eclipse api that references a folding application, and something called "coffee bytes" which doesn't appear to work in CDT. Aaargh. I think that 1) Custom folding configurable through the menus would be a great addition to the next CDT. and 2) I'm willing to be a guinea pig :) and 3) Someone that knew eclipse well, and had this piece of information:

http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.cdt.doc.isv/reference/extension-points/org_eclipse_cdt_ui_foldingStructureProviders.html


could maybe make a text file I could edit and put somewhere in the eclipse folder to fix my immediate problem. OMG, that would be so helpful.

Thanks for reading,
Jeff
Comment 1 Anton Leherbauer CLA 2010-11-30 04:57:34 EST
*** Bug 331405 has been marked as a duplicate of this bug. ***
Comment 2 Ladar Levison CLA 2011-03-08 00:16:34 EST
This bug has been open quite awhile. Think we could get support for region folding added to the Indigo release? See bug 331405 for what I mean...
Comment 3 Alex Emm CLA 2014-02-06 16:59:36 EST
Please add my vote to this feature (and many more votes of those who didn't have time to come here and add their votes to this feature.)

In addition, please add an option to _fold_by_indentation_, the way 
jEdit IDE/editor allows it (described here: http://www.jedit.org/users-guide/folding.html)

As of this moment, according to Wikipedia, Eclipse has only 1 out of 4 folding methods available: https://en.wikipedia.org/wiki/Code_folding.

Could anyone please at least just take coffee-bytes and force it to work with CDT?

Thank you very much in advance.