[CSHARP-359] Proposal: change code formatting to Visual Studio defaults Created: 29/Nov/11  Updated: 02/Apr/15  Resolved: 13/Dec/11

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: 1.3.1
Fix Version/s: 1.4

Type: Task Priority: Minor - P4
Reporter: Robert Stam Assignee: Robert Stam
Resolution: Done Votes: 4
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to CSHARP-360 Proposal: replace #region directives ... Closed

 Description   

While the current code formatting style (K&R or 1TSB) is one of several in common use in the industry, it is not the style configured by default in Visual Studio.

The proposal is to reformat the code base using the Visual Studio default settings. This would have the following benefits:

  • there are probably more people using Visual Studio defaults than K&R
  • contributors could use the Visual Studio defaults and not have to load any settings into Visual Studio
  • any disagreements about code formatting style could be settled by appealing to the defaults (in most cases)

No decision will be made on this issue for a few weeks to allow time for comments.

Thanks in advance for your feedback.



 Comments   
Comment by Robert Stam [ 13/Dec/11 ]

Code base is now formatted using Visual Studio defaults.

Comment by Justin Dearing [ 05/Dec/11 ]

Me too!!

Comment by ymind chan [ 05/Dec/11 ]

The long-awaited

Comment by Roman Kuzmin [ 29/Nov/11 ]

Default VS formatting would be better, IMHO. I have seen a lot of code in many projects. Most of them follow VS default formatting. It is standard de facto.

Comment by John Woakes [ 29/Nov/11 ]

I think this is a great idea.

Comment by Craig Wilson [ 29/Nov/11 ]

I for one would be very grateful. I have no issues with the Visual Studio defaults and believe, as you have stated, that it would make contributing easier as well as reading. Thanks for listening.

Generated at Wed Feb 07 21:36:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.