[MonoDevelop] New code formatter joins line to aggressively

Michael Hutchinson m.j.hutchinson at gmail.com
Fri Sep 11 16:53:14 EDT 2009

On Fri, Sep 11, 2009 at 4:28 PM, Mike Krüger <mkrueger at novell.com> wrote:
> Wrap lines that are too long - artifically ? Could be done, but I think
> it's nonsense having something like the '80 chars' limit (did I mention
> that I work with a 28" wide screen display ?).

Not all developers have 28" screens. A 13" Macbook, for example, has
resolution of 1280x800. I can comfortably display about 120 columns on
such a screen. My desktop has a 24" screen @ 1920 x 1200 but use a
fairly large font, so I can only display ~140 columns.

Even if the lines do fit on the screen, it's easier to mentally parse
an expression that is meaningfully split up over multiple lines.

I personally try to wrap code to *around* 120 chars, which is what the
MD solutions' column ruler is set to for C# files. I don't use it as a
hard rule, just a guideline for readability.

Case in point: you made formatting changes to code that I wrote
definitely damaged readability (lines 56 and 277):

Michael Hutchinson

More information about the Monodevelop-list mailing list