Bug 12660 - Inserting whitespaces in method invocation even then it is turn off in settings
Summary: Inserting whitespaces in method invocation even then it is turn off in settings
Status: VERIFIED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: 4.0.8
Hardware: PC Windows
: --- normal
Target Milestone: master
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-06-12 15:30 UTC by Fedor
Modified: 2014-03-27 05:54 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:
VERIFIED FIXED

Description Fedor 2013-06-12 15:30:48 UTC
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 ";"


Actual Results:
Adds white space before "("

Expected Results:
No white space

How often does this happen? 
Always

Additional Information:
Tries to restart Xamarin studio - no changes.
Really drives me mad(((
Comment 1 Mikayla Hutchinson [MSFT] 2013-06-17 20:26:26 UTC
Is the file part of a project/solution?

If so, you need to change the solution's code formatting policy.
Comment 2 Fedor 2013-06-18 14:49:46 UTC
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.
Comment 3 Mikayla Hutchinson [MSFT] 2013-06-18 17:24:21 UTC
Yes, we know it's discoverability issue and we have a plan to fix it.
Comment 4 Shruti 2014-03-27 05:54:20 UTC
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 :
http://www.screencast.com/users/Shruti3490/folders/Default/media/279bb92a-042e-44f4-b3d3-4c9ab6c9eeb5

Environment Info

=== Xamarin Studio ===

Version 4.2.4 (build 266)
Installation UUID: 400bab6b-f5cd-4e84-a1d1-39f9d6414cb1
Runtime:
 Microsoft .NET 4.0.30319.18449
 GTK+ 2.24.22 (MS-Windows theme)
 GTK# 2.12.25

=== 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.