Bug 469465 - [projection] content of the method should be shown if it fits into the line
Summary: [projection] content of the method should be shown if it fits into the line
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.5   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-05 07:22 EDT by Lars Vogel CLA
Modified: 2015-06-05 19:20 EDT (History)
3 users (show)

See Also:


Attachments
Folded copy in IntelliJ (196.29 KB, image/png)
2015-06-05 07:22 EDT, Lars Vogel CLA
no flags Details
Folded code in Eclipse (4.95 KB, image/png)
2015-06-05 07:22 EDT, Lars Vogel CLA
no flags Details
Folded code in IntelliJ (3.53 KB, image/png)
2015-06-05 07:23 EDT, Lars Vogel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Vogel CLA 2015-06-05 07:22:14 EDT
Created attachment 254142 [details]
Folded copy in IntelliJ

Code folding is less useful in Eclipse compared to other IDEs. 

For example IntelliJ has this nice feature that it shown the content in the same line if it actually fits into it. I think this would also very benefical for the Eclipse IDE users.

Screenshots attached.
Comment 1 Lars Vogel CLA 2015-06-05 07:22:35 EDT
Created attachment 254143 [details]
Folded code in Eclipse
Comment 2 Lars Vogel CLA 2015-06-05 07:23:38 EDT
Created attachment 254144 [details]
Folded code in IntelliJ
Comment 3 Dani Megert CLA 2015-06-05 08:08:25 EDT
This will be hard to do with the current projection infrastructure.
Comment 4 Stephan Herrmann CLA 2015-06-05 19:20:10 EDT
I actually doubt the advantage of the IntelliJ variant:

If I fold away some code, I'd typically do this in order to have less information on the screen: just headers, nothing more.

Eclipse seems to follow this goal pretty closely.

By contrast, IntelliJ seems to follow a different goal: compress the element to a single line, squeezing in any information that fits on the line.