Had another 48hr game jam this weekend...

H. S. Teoh hsteoh at quickfur.ath.cx
Mon Sep 2 08:16:06 PDT 2013


On Mon, Sep 02, 2013 at 11:46:21PM +1000, Manu wrote:
[...]
> Really? You both think seeing the function signature a second time at
> the definition is 'noisy' when compared to massive blocks of
> arbitrarily indented function body code consuming the entire class
> definition, and completely breaking up your code window?
> A few function bodies and you can't see anything anymore. You have to
> scroll miles to get an overview of the class, and try and remember
> each function header along the way as you scroll by; you can never
> digest it cleanly in one place.
[[...]

In vim, you just sit the cursor on the opening '{' and press '%', and
behold!  the next method in the list! :)  Or install the D syntax
highlighting files and have vim automatically fold function bodies for
you.

OK, excuse the vim fanboyism, but I think any serious D IDE ought to
have this kind of functionality to ease navigation through source code.
Scrollbars are so last century. (Not to mention totally worthless when
dealing with 10,000-line files when the bar is 1 pixel high and
scrolling by 1 pixel maps to 5 pages -- totally worthless for
navigation.)


T

-- 
My program has no bugs! Only undocumented features...


More information about the Digitalmars-d mailing list