Bug 5353 - semicolon placed in wrong place in single-line statement
Summary: semicolon placed in wrong place in single-line statement
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: 3.0.x
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2012-05-26 12:22 UTC by Nic Wise
Modified: 2012-10-11 02:30 UTC (History)
2 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:
RESOLVED FIXED

Description Nic Wise 2012-05-26 12:22:53 UTC
NavigationItem.RightBarButtonItem = new UIBarButtonItem(UIBarButtonSystemItem.Refresh, delegate { ReloadSummaryWrapper()}); 

if I try to add a ; after ReloadSummaryWrapper(), it goes after the last ;

I have to split it up onto a separate line.

:(

3.0.1, but been doing it for a while.
Comment 1 Mike Krüger 2012-05-27 01:03:28 UTC
Do you have the 'intelligent semicocon placement' option turned on ?
Comment 2 Nic Wise 2012-05-27 06:38:26 UTC
Sure do. In general, it works. Except in this case.
Comment 3 ventsislav mladenov 2012-09-10 11:14:54 UTC
Hi, 
  I have same problem. I can give an example with properties:

public bool Test { get { return false } }
if you go after false and try to add ; it goes at the end.
public bool Test { get { return false } };
then if i hit backspace it goes to proper place:
public bool Test { get { return false; } }

I have "Smart semicolon placement" activated.

P.S. 
  It will be nice to have search field in options dialog, for faster search options it took me a minute to find where "Smart semicolon placement" option is.
Comment 4 Mike Krüger 2012-10-11 02:30:54 UTC
fixed