Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
Description of Problem:
Inserts white spaces before open parenthesis when I strike ";" at the end of the line in any C# file
Steps to reproduce the problem:
1. Go to Tools -> Code Formatting -> C# source code -> Edit
2. Select Category: White Space
3. Remove check box in Expressions/Method Invocations/before opening parenthesis
4. Open any C# file write some function invocation w/o space before opening parenthesis hit ";"
Adds white space before "("
No white space
How often does this happen?
Tries to restart Xamarin studio - no changes.
Really drives me mad(((
Is the file part of a project/solution?
If so, you need to change the solution's code formatting policy.
Yes, files are part of solution. Thanks, solution code formatting has helped.
As for feedback for this feature: may be it`s quite undescoverable(( Because, the first thing that came into my mind that Tools -> Code Formatting is sufficient. May be you should add "Apply settings for current solution" button or something similar.
Yes, we know it's discoverability issue and we have a plan to fix it.
I have checked this fix by following the steps mentioned in Description section.
1. White Space appears before parenthesis() When 'white Space before opening parenthesis' checkbox is checked.'
2. White Space does not appears before parenthesis() When 'white Space before opening parenthesis' checkbox is not checked.
Please refer Screen Cast video for this :
=== Xamarin Studio ===
Version 4.2.4 (build 266)
Installation UUID: 400bab6b-f5cd-4e84-a1d1-39f9d6414cb1
Microsoft .NET 4.0.30319.18449
GTK+ 2.24.22 (MS-Windows theme)
=== Xamarin.Android ===
Version: 4.13.0 (Trial Edition)
Android SDK: E:\SDK\AndroidSDK
Supported Android versions:
1.6 (API level 4)
2.1 (API level 7)
2.2 (API level 8)
2.3 (API level 10)
3.1 (API level 12)
3.2 (API level 13)
4.0 (API level 14)
4.0.3 (API level 15)
4.1 (API level 16)
4.2 (API level 17)
4.3 (API level 18)
4.4 (API level 19)
Java SDK: C:\Program Files (x86)\Java\jdk1.6.0_31
java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b05)
Java HotSpot(TM) Client VM (build 20.6-b01, mixed mode, sharing)
=== Build Information ===
Release ID: 402040266
Git revision: 57fa6b7639703775ae1d5c46536e42ab424cb177
Build date: 2014-03-20 12:27:02-04
Xamarin addins: eee141c29724a19529e77b8e743086d95b29f5ba
=== Operating System ===
Windows 6.2.9200.0 (64-bit)
Hence, closing this issue.