Bug 2286 - Banner Style Braces
Summary: Banner Style Braces
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C# Binding ()
Version: unspecified
Hardware: PC Linux
: Normal enhancement
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2011-12-01 00:11 UTC by ajb
Modified: 2012-02-27 03:27 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description ajb 2011-12-01 00:11:53 UTC
User is requesting "Banner Style Braces" as described here:

http://en.wikipedia.org/wiki/Indent_style#Banner_style

Which would look like:

public void DoStuff(int stuffId) {
    if(stuffId > 0)
        dudeBroDoStuff();
}

Original Text

editor is lacking an option for C# for how to indent closing braces. It allows options like "end of line" for starting braces but does not seem to allow indenting option for closing braces. I use the Banner style of indenting and I need to be able to indent closing braces. See: http://en.wikipedia.org/wiki/Indent_style for example of Banner style

MonoDevelop: 2.6
Runtime: Mono 2.10.5 (Debian 2.10.5-1~dhx1~lucid1)
Operating System: Linux (Unix 2.6.32.35)
Comment 1 ajb 2011-12-01 00:15:55 UTC
Correction, indentation is not rendering correctly. In the sample code followed by "Would look like:" the closing brace should be indented :-P
Comment 2 Mike Krüger 2012-02-27 03:27:52 UTC
Implemented.