Bug 6390 - Removing whitespace sometimes
Summary: Removing whitespace sometimes
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C# Binding ()
Version: 3.0.x
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Mike Krüger
Depends on:
Reported: 2012-08-04 12:46 UTC by Eric Maupin
Modified: 2012-08-11 14:36 UTC (History)
2 users (show)

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

Repro project (26.93 KB, application/zip)
2012-08-04 12:46 UTC, Eric Maupin

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 Eric Maupin 2012-08-04 12:46:59 UTC
Created attachment 2301 [details]
Repro project

Tried with both auto formatting on and off.


1. Open Events.sln
2. Enter AppDelegate.cs
3. Move the cursor to the end of the whitespace in HandleOpenURL
4. Press Shift+Up to select all whitespace up to the end of the top brace
5. Press delete
Notice that the two braces below the selected lines also get removed

Tested on MD
Comment 1 PJ 2012-08-04 13:38:25 UTC
I can't repro, unfortunately.

Downloaded the test case and deleted the same lines and had only the two lines selected deleted.


Mkrueger, if you have any advice for further diagnosing these kinds of issues in the future please let me know. 

Installation UUID: ae3a93b6-904a-4184-9797-d2cfb99046b7
	Mono 2.10.9 (tarball)
	GTK 2.24.10
	GTK# (
	Package version: 210090011
Apple Developer Tools:
	 Xcode 4.5 (1826)
	 Build 4G125j
Monotouch: 5.99.1
Mono for Android:
Android SDK: /Users/xamarinqa/Library/Developer/Xamarin/android-sdk-mac_x86
Supported Android versions:
	Version: 1.6	ApiLevel: 4
	Version: 2.1	ApiLevel: 7
	Version: 2.2	ApiLevel: 8
	Version: 2.3	ApiLevel: 10
	Version: 3.1	ApiLevel: 12
	Version: 4.0	ApiLevel: 14
	Version: 4.0.3	ApiLevel: 15
Java SDK: /usr/bin

Build information:
	Release ID: 30003005
	Git revision: 3d53e1366933298a3fe0cdc6d0f7d00c9916564c-dirty
	Build date: 2012-07-27 19:06:34+0000
	Xamarin addins: 73ecde7c48d943adb6e33d511d3cf0661d006801
Operating System:
	Mac OS X 10.7.4
	Darwin Bojans-MacBook-Air.local 11.4.0 Darwin Kernel Version 11.4.0
	    Mon Apr  9 19:32:15 PDT 2012
	    root:xnu-1699.26.8~1/RELEASE_X86_64 x86_64
Comment 2 Mike Krüger 2012-08-10 04:20:39 UTC
I can repro it

The thing is that you need to be a bit creative - 'delete' can mean backspace - in this case that's true.
Another thing is that users use different options. For that bug the 'insert matching bracket' option needs to be turned on.

When trying to repro bugs I recommend turning on as much options as possible :)

btw. bug is fixed. @erik: Your screencast was very helpful.
Comment 3 PJ 2012-08-11 14:36:06 UTC
Thanks Mike!