Bug 5193 - Code formatting is wrapping my params to new lines
Summary: Code formatting is wrapping my params to new lines
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C# Binding ()
Version: 3.0.x
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2012-05-20 19:12 UTC by Neal
Modified: 2012-05-23 17:36 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 Neal 2012-05-20 19:12:09 UTC
I type in a one line method call and when I press the ; it wraps the params to new lines ss shown below.  I'm using "Visual Studio" for the code formatting style.  Didn't have this issue in 2.8.8.4:


One line GET was wrapped to what you see below on ;

        public static bool IsSubscribedCloudSync
        {
            get
            {
                return Services.Main.IsSubscribed(
                    MySettings.AccountID,
                    MySettings.AccountUsername,
                    SubscriptionPlan.CloudSync
                    );
            }
        }
Comment 1 Mike Krüger 2012-05-21 01:01:10 UTC
Fixed in master. Increase the maximum line length as a workaround.
Comment 2 Neal 2012-05-23 16:56:39 UTC
Where do I increase max line length?  I increased the document width from 80 to 300 and even 1000 but it still wraps method params and also params such as string.format, new RectangleF params, etc.

Please review this again and let me know the fix, I do not want my params EVER being wrapped.  VS.NET doesn't do it on code formatting and there is no column width setting there.  My understanding was this width property is only for the vertical/column ruler but nothing else.
Comment 3 Mike Krüger 2012-05-23 17:09:07 UTC
The wrapping options shouldn't be turned on, was an error in the release pipeline - the release branch was branched too soon & wasn't tested well enough.
(But was fixed in master after branching)

Seems that it was set to wrap always in 3.0, therefore setting the width doesn't help - sorry about that.
Comment 4 Mike Krüger 2012-05-23 17:09:38 UTC
The wrapping options aren't even exposed to the GUI yet - because they're flaky.
Comment 5 Neal 2012-05-23 17:11:42 UTC
Do you expect a new stable soon so I can avoid this insanity? :)
Comment 6 Mike Krüger 2012-05-23 17:36:01 UTC
I think we'll release it shortly.