| Summary: | [projection] Comment sections support for collapse/expand and outline view. | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Raphael Jolivet <raphael.jolivet> |
| Component: | Text | Assignee: | JDT-Text-Inbox <jdt-text-inbox> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | daniel_megert, remy.suen |
| Version: | 3.4 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
Bugs and enhancement requests about Eclipse's Java tooling goes to JDT. |
Build Identifier: I20080617-2000 Hi, I'm used to organizing my code (Java code here, but this applies to any language) in a hierarchy of "sections" delimited by nice comments. Something like // ---------------------------------------------------- // Private utils // ---------------------------------------------------- [... some code ...] // ---------------------------------------------------- // Implementation of the interface Foo // ---------------------------------------------------- [... some code ...] // ---------------------------------------------------- // Getters / Setters // ---------------------------------------------------- [... some code ...] I also include such comment blocks within large methods, to organize them. This really increases the readability of the code, and we all know that this is important, right ? :-) So my wish would be that eclipse could recognize these special "section" comments. It could then show the expand/collapse button in the editor, or even show this hierarchy in the outline view. The syntax of these comments could be configurable : A syntax for opening and closing section of codes. Something like : //{ Section 1 [ ... code ... ] //} //{ Section 2 [... code ...] //{ Sub Section [... code ...] //} //} Alternatively, we could directly use blocks of code as delimited per the language. I do it sometime for large methods, but this is not really suitable for top level section (not within methods) : //! Section { [... Code ...] } Thanks for your attention. Regards, Raphael Reproducible: Always