Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C# Code Formatter for Linux and/or MonoDevelop

MonoDevelop 1.0 doesn't appear to have a code-formatter like Eclipse does for Java. Is there a preferred shell script (or MonoDevelop add-in?) that you've found to work well?

like image 917
DustinB Avatar asked Jun 24 '26 22:06

DustinB


1 Answers

At the moment, source code formatting in MonoDevelop is marked as a future enhancement: https://bugzilla.novell.com/show_bug.cgi?id=321946

In the meantime, you may want to check out Artistic Style for C# formatting: http://astyle.sourceforge.net/

I'm planning to see how this might be wired up as an external tool within MonoDevelop. If I get to that, I will edit my answer with the information. UPDATE: I don't have enough reputation to leave a comment, so I'll make one here: Nice job, Dustin, and patch for MonoDevelop too :-) I wonder how recent the version is that is included with Ubuntu... Either way, I'm glad you found something that works for you.

like image 90
Brandon Payton Avatar answered Jun 27 '26 13:06

Brandon Payton



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!