C# brackets coding style is an odd mix RRS feed

  • Question

  • User15741 posted

    The default C# bracket style is an unusual mix of "Next line" and "End of line". I've heard heated arguments for either, but not for both. What's the origin of this style and is it your in-house convention?

    Friday, July 5, 2013 11:06 AM

All replies

  • User28 posted

    This is the MonoDevelop coding style, which is a slight modification of the Mono coding style, which IIRC is inspired by the Linux kernel code style.

    Wikipedia has a description of various indent styles and their pros and cons..

    Friday, July 5, 2013 9:32 PM
  • User2665 posted

    Is there any way to change this in Xamarin Studio to use Visual Studio style for brackets? Not saying that there's anything wrong with the way XS does it right now, it's just not my preference as a Visual Studio guy! I can see preference settings for this, but I can't find any way to change them.

    If it's not possible today, is there any way it could be included at a later date?

    Monday, July 8, 2013 2:03 PM
  • User81 posted

    Xamarin Studio -> Preferences

    Monday, July 8, 2013 8:49 PM
  • User2665 posted

    Brilliant! I had missed the drop down box at the top - really easy to fix when you know how :) Thanks Pierce.


    Tuesday, July 9, 2013 1:16 AM