Bug 4862 - Edit -> Format -> Format file destroys indentation
Summary: Edit -> Format -> Format file destroys indentation
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: 2.9.x
Hardware: PC Linux
: Normal normal
Target Milestone: 3.0
Assignee: Mike Krüger
Depends on:
Reported: 2012-05-03 10:28 UTC by Jaapjan
Modified: 2012-05-03 14:06 UTC (History)
2 users (show)

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

Mono style applied-- be sure to enable viewing spaces to see the effect. (3.44 KB, application/zip)
2012-05-03 11:05 UTC, Jaapjan

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 Jaapjan 2012-05-03 10:28:49 UTC
See this 10 second screencast for demo.

Comment 1 Mike Krüger 2012-05-03 10:48:16 UTC
Interresting side effect when setting tab size to 8, and indent size to 4 + tab as spaces.

Y the formatting is correct and that's how it looks like. But I assume you did set to mono text style, there the setting was wrong.

It's now tab size 8, indent size 8 + tab indent.

Comment 2 Jaapjan 2012-05-03 11:05:05 UTC
Created attachment 1801 [details]
Mono style applied-- be sure to enable viewing spaces to see the effect.