Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
if you are using git master and create a new C# project, all the files are double-indented (2 tabs instead of 1).
This does not happen in 3.0.2
C# Formatter options ("Use default settings from 'Text File'"):
Tab Width: 4
Indent Width: 4
Convert tabs to spaces: No
Allow tabs after non-tabs: Yes
Remove trailing whitespace: Yes
Does work for me - are you sure the project settings are the same ?
I suspect that there is a 8 indent with somewhere.
Somehow the indent width got set to 8, I have no idea how.
But what is weird is that wasn't the case if I switched back to 3.0.2, it *only* happened when I did "make run" for git master.
It may be that the policy loading didn't work correctly ?
Any output on the console ?
Michael informed me that "make run" makes MonoDevelop use a different settings file, and suggested that maybe there was a bug at some point in the past which caused that file to get its indent level to 8 spaces?
In any case, if I hit this again, I'll reopen - but so far it's been "fixed' once I set the value back to 4.
There was a bug some time ago - yes. But that is maybe a month back.
This is happening to me. Jeff, were you able to change something locally to fix it? It happens from trunk and on the latest alpha.
I can even create a brand new solution, then every file inside the solution has 2x tabs. If I hit enter on any line, that line then tabs properly. But everything else is still out of place.
I can fix all the tabs, then it is great. If I do Edit -> Format -> Format document, it messes all the tabs up again.
I have "Use default settings from 'Text File'" checked. But it does have Indent width at 8. It is grayed out. I never changed anything in here. If I uncheck it and change the width to 4 it works properly.
What would cause that default to change?
the default is 4 - I've no clue what can go wrong there - it may that one of the 3.0.x versions did something wrong ? At least now it works for me when I nuke the settings.