[MonoDevelop] What is the correct formatting setting for this?

Antoniotti Marco antoniotti.marco at disco.unimib.it
Wed Sep 16 12:10:25 UTC 2015


Hi,

just a lurker observation here.

doThisThing(x,
            y,
            z);

is the way C (et similia) is indented in Emacs.  Personally, not having Emacs indentation rules available in a code editor has always been to me the biggest annoyance and the reason why I then revert to C- and M-.

Cheers
—
Marco





On Sep 16, 2015, at 13:49 , Mike Krüger <mkrueger at xamarin.com<mailto:mkrueger at xamarin.com>> wrote:

Hi

It's a wrapping option align to the first argument. However that wouldn't work in the next version of teh formatting engine - the vs one doesn't seem to support it yet. In general I wouldn't recommend using custom formatting settings right now. But generall style sets like mono/vs.net/k&r<http://vs.net/k&r> are supported and are working.

Easier would be using:

doThisThing(
    x,
    y,
    z);


That works now & with the next version of the formatting engine.

Regards
Mike

On Wed, Sep 16, 2015 at 1:29 PM, Matt Calder <mvcalder at gmail.com> wrote:
I seem to have messed up my code formatting settings. I like arguments of a method invocation that are separated by newlines to line up to the opening paren of the call:

doThisThing(x,
            y,
            z);


But recently MD has been insisting on:

doThisThing(x,
   y,
   z);

I looked at the code formatting options for indentation but couldn't find one that seemed relevant.

Matt

_______________________________________________
Monodevelop-list mailing list
Monodevelop-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monodevelop-list


_______________________________________________
Monodevelop-list mailing list
Monodevelop-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monodevelop-list

--
Marco Antoniotti, Associate Professor tel. +39 - 02 64 48 79 01
DISCo, Università Milano Bicocca U14 2043 http://bimib.disco.unimib.it
Viale Sarca 336
I-20126 Milan (MI) ITALY

Please check: http://ceac.lakecomoschool.org

Please note that I am not checking my Spam-box anymore.
Please do not forward this email without asking me first.





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodevelop-list/attachments/20150916/ef3e9d70/attachment.html>


More information about the Monodevelop-list mailing list