[MonoDevelop] code style prefs (was: "Implement interface" issues)

Jeffrey Stedfast fejj at novell.com
Fri May 25 16:06:39 EDT 2007

On Fri, 2007-05-25 at 14:44 -0500, Jerome Haltom wrote:
> Speaking of such:
> Has anybody spoken up about having configurable code formatting settings
> yet? I *think* sharp develop supports this?
> Basically a dialog where you can tell it whether you want a space after
> method names and a dropped '{'.

this would be a really nice feature to have, just haven't gotten around
to implementing it yet.

I think the tricky bit will be writing our own custom parser for this,

1. my custom smart-indent parser is pretty loose, too loose to be able
to enforce style at the level we'd probably want

2. I get the feeling the parser we use for code completion (which is AST
based I think) stuff is too strict (which isn't good for re-formatting
code because the user may do it when the code is incomplete/invalid in
some way... perhaps missing using statements or a typo, a block isn't
closed, etc)

then again, perhaps I'm quite wrong about the AST parser :)

oh, and I gather that these formatting options would not be applied
on-the-fly as you type, correct? Just when you invoke a menu option...?
(that's how I recall it working in IDEs like Visual Studio, but I could
be wrong...)

Obviously we'd also want to apply these rules when inserting
auto-generated code as well (e.g. like the refactory features)


More information about the Monodevelop-list mailing list