Bug 6585 - Formatter does not use format I have set in tool->option
Summary: Formatter does not use format I have set in tool->option
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: 3.0.x
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Mike Krüger
Depends on:
Reported: 2012-08-17 13:15 UTC by Thaina
Modified: 2013-09-04 07:05 UTC (History)
1 user (show)

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:

Description Thaina 2012-08-17 13:15:55 UTC
I have use MonoDevelop with Unity

Seem like formatter just use default code format. Even I have set spacing and other format option, all useless, It just do thing like a default one
Comment 1 Thaina 2012-08-17 13:19:06 UTC
And I don't know why you using useless format for spacing like spacing before parentheses of function call. That's the most useless spacing I have ever seen. Why you make it default? Did you know that there are many function we use inline like Math.Sin or something like that. It make my code look like garbage immediately
Comment 2 Mikayla Hutchinson [MSFT] 2012-08-17 16:51:33 UTC
Formatting "policy" settings are stored in the solution. When creating a new solution or opening a solution that does not have formatting settings, the user's policy preferences are copied into the solution, but changing user policy preferences does not change the policy of existing solutions. If you want, you can define custom policy sets and apply them to existing solutions.

This is done so that if multiple people work on the same solution, they have the same formatting settings and other such policies.
Comment 3 Mike Krüger 2012-08-18 17:03:57 UTC
It's a feature :/ - it's the policy system (as michael pointed out). It's for making collaboration work possible. 

But I agree that we should find a better user interface to communicate that to our users.
We're working on it.
Comment 4 Thaina 2012-08-19 03:55:25 UTC
Nope, It's a bug. I mean it is the same solution. I just setting formatter and press OK then Edit->Format my code. It just format my code like default one, not my format I have just set

I'm not sure it because sync with unity have something relate or not but it's surely a bug. And lack of feature to override default and need to re-set every new solution is not a feature
Comment 5 Mike Krüger 2013-09-04 07:05:14 UTC
You've to set just the right options - changing the formatting options on the project level has an immediate effect.