-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IDE options to control the sorting of fields and properties #4778
Comments
The newlines are also tracked by http://connect.microsoft.com/VisualStudio/feedback/details/1617595/incorrectly-formats-source-code-when-using-the-encapsulate-field-command. The property placement may be by design, but we should understand the difference. |
The newline aspect of this is tracked by #84. |
Generally, Roslyn inserts properties after constructors, as controlled by the CSharpDeclarationComparer. We'll use this bug to track adding options to modify that sort order. |
Really annoying all those extra lines when generating the get/set for a property...please let us have it as it was with VS 2013 !!! |
Note - when implementing, it would probably be a good idea to re-use the idea of Symbol Specification from naming styles to define this ordering. |
I don't repro this. The fields go in teh right place, and the property formatting is correct. |
Steps to Reproduce
string field;
Expected
Behaviour in VS2013
Actual
The text was updated successfully, but these errors were encountered: