Bug 5468 - Code formating settings bugs
Summary: Code formating settings bugs
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-06-02 13:02 UTC by pinggi
Modified: 2013-09-03 02:42 UTC (History)
4 users (show)

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


Attachments
01 - wrong indentation (98.45 KB, image/png)
2012-06-02 13:02 UTC, pinggi
Details
02 - white space example differs from what is set (91.39 KB, image/png)
2012-06-02 13:03 UTC, pinggi
Details
03 - brace forcement doesn't cahnge the code example at all (78.73 KB, image/png)
2012-06-02 13:03 UTC, pinggi
Details
04 - modal window behind other (136.68 KB, image/png)
2012-06-02 13:04 UTC, pinggi
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 pinggi 2012-06-02 13:02:10 UTC
Created attachment 2003 [details]
01 - wrong indentation

I found some understandable things in code formating settings:

1. Class declaration ends with curly bracket indented one tab to the right, which is wrong. Look at the attachment.

2. White space was removed before opening the parenthesis, but it is still present in the code formating example window.

3. Brace forcement changes nothing in the code formating example window.

4. Tools->Options->Code Formating->C# source code->C# Format tab->Edit
   causes opening the 'Edit Profile' modal window. It is displayed above the 'Options' modal window. If I switch to another application and back to the Monodevelop, the 'Edit profile' window is displayed under the 'Options' window. It shouldn't be like that. The 'Edit profile' window should be displayed above the 'Options' window.
Comment 1 pinggi 2012-06-02 13:03:13 UTC
Created attachment 2004 [details]
02 - white space example differs from what is set
Comment 2 pinggi 2012-06-02 13:03:53 UTC
Created attachment 2005 [details]
03 - brace forcement doesn't cahnge the code example at all
Comment 3 pinggi 2012-06-02 13:04:23 UTC
Created attachment 2006 [details]
04 - modal window behind other
Comment 4 Kelly Thomas 2012-06-25 12:43:26 UTC
using unity version: corrupting code when I enter semi-colon.

changes from:
		if(  Input.GetButtonUp( "Fire1"))
		{
 			Rigidbody bulletInstance = (Rigidbody)Instantiate( bullet,transform.position,transform.rotation);
			Vector3 fwd = transform.TransformDirection(Vector3.forward);
			bulletInstance.AddForce(fwd*power)
		}

to:
		if(  nput.GetButtonUp(  Fire1"))
 
 			igidbody bulletInstance = (Rigidbody)Instantiate(  ullet,t ransform.position,t ransform.rotation);
			Vector3 fwd = transform.TransformDirection( Vector3.forward);
			bulletInstance.AddForce( fwd* p ower);
		}

looks to be inserting spaces at wrong places during auto-format.
dont know how to disable format?!?
Comment 5 darkling3100 2013-03-17 01:04:34 UTC
On the Debian build it also seems that settings are not saved after shutting down MonoDevelop
Comment 6 darkling3100 2013-03-17 01:40:19 UTC
Sorry seems that was my fault
Comment 7 Mike Krüger 2013-03-17 03:10:00 UTC
Which version are you using ?

btw. we can't give support to the unity version - they use an almost 3 year old one.
Comment 8 Mike Krüger 2013-09-03 02:42:25 UTC
I've checked all reported items & fixed the missing ones.