[Monodevelop-devel] aggressive code formatting

Michael Hutchinson m.j.hutchinson at gmail.com
Mon Jul 27 10:20:40 EDT 2009


On Mon, Jul 27, 2009 at 9:33 AM, Levi
Bard<taktaktaktaktaktaktaktaktaktak at gmail.com> wrote:
>>> Any way we can have this disabled for certain mime-types?
>>
>> IMO it sounds like this should be opt-in for mimetypes, not opt-out.
>
> Maybe these options (insert matching, OTF formatting) should be pushed
> into the project-level policies?

Ouch, no. Insert matching in particular fundamentally changes the way
you use the text editor - it's definitely a personal preference. I'd
argue that this is the case for OTF formatting too.

I've haven't yet worked out a concise definition for how I intended
policies to be used, but broadly speaking, they should be used to
control *what* the output of MD is, not *how* it is produced. People
have their own preferences for how they like to work, and as long as
these do not affect the code that they save/commit, MD shouldn't
interfere. I can explain all the existing policies in these terms.

For example, for enforcing coding style, I'd be more in favour of
auto-format on save or commit.

Feel free to make the case against me though :)

-- 
Michael Hutchinson
http://mjhutchinson.com


More information about the Monodevelop-devel-list mailing list