Bug 13873 - simple single line commands are split up
Summary: simple single line commands are split up
Status: VERIFIED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: unspecified
Hardware: PC Windows
: Normal normal
Target Milestone: 4.2.4 (from master)
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2013-08-08 17:56 UTC by reza
Modified: 2014-02-10 16:29 UTC (History)
3 users (show)

Tags:
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:
Status:
VERIFIED FIXED

Description reza 2013-08-08 17:56:41 UTC
xamarin studio seems to be configurable in a lot of ways, but there is one thing that i can't get it to do. When I type something like

while (true);

it splits it up to

while (true)
   ;
or the more common case

if (foo) method();

get split up as

if (foo)
  method()

I've tried all the settings that I can find, but I still can't get those commands not to get split up into multiple lines. Is there a setting that I'm not seeing?

thnx
Comment 1 Mike Krüger 2013-08-20 11:58:05 UTC
That one was missing - I added it.

(By default I allow now both styles).
Comment 2 Sadik Ali 2014-01-27 08:49:14 UTC
I have verified this issue on following environment, But I am getting same issue. When I typed above code it automatically splitted.
Refer screen shot: http://screencast.com/t/yRn3aH4P

Checked With: 

Xamarin Studio
Version 4.2.3 (build 154)

Build Information
Release ID: 402030154
4dca4a28d7ecc2c4df8a4d58e74b8902d0283b53
Xamarin addins: cc120a6f639fa6649aa4d23a0f0e7c5701134047
    
Xamarin.Android
Version: 4.13.0
Comment 3 Mike Krüger 2014-01-27 09:02:37 UTC
sadik: you need to turn that behavior on. Splitting up is the 'common' formatting style.
Comment 4 Mike Krüger 2014-01-27 09:02:37 UTC
sadik: you need to turn that behavior on. Splitting up is the 'common' formatting style.
Comment 5 Sadik Ali 2014-01-27 10:20:29 UTC
Can you please tell me what behavior I need to turn on. 
I have checked this under Xamarin>>Tools>>Options but unable to reach around that behavior
Comment 6 Mike Krüger 2014-01-27 10:59:01 UTC
Stuff like that is inside the formatting options
new lines-> place embedded statements on new line
Comment 7 Sadik Ali 2014-01-28 10:00:35 UTC
I have changed behavior by selecting Xamarin>>Tools>>Options>>TextEditor>>Behavior and changed Indentation value "None"
After changing behavior its working fine.