Eclipse Finally Gets Code Folding
binarysearch writes "Code folding is finally in the Eclipse project! After more than two years open, Eclipse's Bug 9355 has finally been marked FIXED. Code Folding was the most-voted for bug in Eclipse, with support for J2SE 1.5 features in a close second. Check out the I20040504 Integration build for folding in the Compilation Unit Editor (Class File Editor support is in HEAD). For those who dislike the implementation, it is requested that you create a new bug, rather than reopening 9355."
this is a misnomer. i was lost for a while. i was under the assumption that code folding is akin to code wrapping (which eclipse has had since day 1)
i would rather term it code collapse...and which is what they call it in the main bug report. however, lots of people call it folding in the followup comments.
i guess i better get used to it being called code folding too.
so, i am happy that i can collapse 100s of lines of code into just the relevant 10-15 lines of code easily. however, i think this can create a problem of introducing silly error pass through (because you dont have the whole perspective on things). i think they have a feature to collapse all code that doesnt involve a variable "x". Anyone tested this yet?
now supporting:
cmdrTaco for president '04
michael for oval office intern summer '05
> Isn't that what "real" programmers would do?
Or what about keeping the code blocks small and concise? See Linux kernel coding style Chapter 4.
If you have to scroll some pages to find the corresponding closing tag, something has gone wrong.
But I've to admit, that I use code folding myself, which shows, I'm not a real programmer. But I also prefer Emacs to vi, which only confirms the fact I'm a quiche eater.
"Between strong and weak, between rich and poor [...], it is freedom which oppresses and the law which sets free"
iirc .. VS.NET, Dreamweaver, Homesite,bluefish,anjuta,eclipse(now), probaby kate, and god knows how many more have this .. its a pretty common feature ive seen in most "major" code editors(dunno about vi(use %) or emacs).
I'm guessing this is only available in the nightly builds for now, since I just hopped over to the site and there's no sign of a new milestone release (would be M9).
So... don't get excited -- the feature is *coded*, but you can't use it yet. That is, I haven't tried an Eclipse nightly before, but in general it's a bad idea if you're depending on the tool.
It looks like the latest integration build (a step up from a nightly) is still failing its tests.
In my experience, even some of the milestone builds have been a tad flaky (I put up with it because I want the features).
Anyone involved in the project know anything about when the next milestone release is planned?
There are only 10 types of people: those who understand decimal, those who don't, and, uh, 8 other types I forget.
never mind. Anjuta does.
Ooops. I just upgraded my old ass version.
Forgive me, senor.
now supporting:
cmdrTaco for president '04
michael for oval office intern summer '05
I'm a bit curious about Eclipse and C++ too. Whilst I'm not *so* concerned about intellisense (although something like Ctrl+P from Vim would be handy), the last time I downloaded the CDT, about 50% of my source code would crash the environment (put CPU usage up to 100% indefinately IIRC).
:)
So, that was about a year ago, and I've been a bit hesitant to try it again, despite the fact I really did like the Eclipse environment.
Can anyone comment on how far the CDT has come in the last 12 months? Oh and also - is there any support for refactoring C++ yet
Very often OSS projects use Bugzilla to track problems and requests for enhancements. To bugzilla, the fundamental unit (whether it's a defect or an RFE) is called a Bug.
Therefore, when they call it "Bug 9399", they are just referring to the entry in bugzilla with that number.