Bug 6462 - C# indentation does not work correctly
Summary: C# indentation does not work correctly
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C# Binding ()
Version: 3.0.x
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2012-08-08 00:49 UTC by Shawn Lewis
Modified: 2012-08-13 00:40 UTC (History)
1 user (show)

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


Attachments
indent incorrect (72.30 KB, image/png)
2012-08-08 00:49 UTC, Shawn Lewis
Details


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 Shawn Lewis 2012-08-08 00:49:53 UTC
Created attachment 2326 [details]
indent incorrect

When I edit cs code, the indentation does not work correctly. In the menu "Tool-Options-Source Code-Code Formatting-C# Source Code", I have set the indent width and tab width to 4 ,as the attachment shows. But when I format the code , all the indent width was converted to 8. I have tried many times , even in a new project it didn't work correctly.
    Is this a bug?
Comment 1 Mike Krüger 2012-08-08 02:18:58 UTC
Look in the project options, maybe you've an indent width there. The text editor options are a policy that can be overwritten.

Which monodevelop version are you using ? Can you try it with 3.0.4 from the alpha channel ?

I've no problems there - maybe it's a bug in the release you're using.
Comment 2 Shawn Lewis 2012-08-11 22:32:27 UTC
thx very much . I solve it as you said.
Comment 3 Mike Krüger 2012-08-13 00:40:18 UTC
ok, closing that one