May 24, 2004
Eclipse 3.0 M9
Eclipse 3.0 M9 - nice new toys, including code folding. I use jEdit's code folding all the time when coding Python, and it's great. I wonder if I can train them to use the same key bindings...
Posted to Java by Simon Brunning at May 24, 2004 01:52 PM
That feature has been in VIM for ages mate ;-)
Of course, if I could get it to reliably work with (X)HTML and XML as well it would be even better ...
Silly me, it's ":set foldmethod=syntax"
jEdit's had code folding ever since I've been using it. It's probably not been in jEdit for anything like as long as it's been in VIM, though. After all, VIM probably had it when jEdit's developers were in short trousers. (It doesn't work *quite* right for Python, though; it picks up indentation in docstrings, and offers you folds there. Good enough for me, though, 'cos I usually flod/unfold whole methods at once.)
It's new to Eclipse, though. Which is ironic, since Java's verbosity makes it even more essential. ;-)
Code folding still needs some work in Eclipse and probably won't make it there by 3.0. See my blog for more info.