-
Notifications
You must be signed in to change notification settings - Fork 4k
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
C# Code Style - New Prefer System.HashCode in GetHashCode option is not supported in .editorconfig #42694
Comments
Notes from today's design meeting (4/13):
|
I tried adding this to my .editorconfig file and it didn't seem to work. Restarted VS too.
|
Note that in VS2022 RTM, this option is shown when opening a .editorconfig (on those occasions where that editor doesn't crash). A disconnect between Options and an EditorConfig file is one thing. But showing a setting in the EditorConfig editing UX that does not actually reflect or modify the EditorConfig file is just bad. |
I can confirm this is still an issue as of 2022-03-04: Microsoft Visual Studio Enterprise 2022 (64-bit) Microsoft (R) Visual C# Compiler version 4.0.1-1.21568.1 (6ab6601) |
I can confirm this is still an issue as of 2022-08-04: Microsoft Visual Studio Professional 2022 (64-bit) |
I'm addressing this in #62939. |
@allisonchou It's unclear to me what's the action needed for this issue? Do we want to support the code-style option in editorconfig? |
@Youssef1313: I'm no @allisonchou, but I think that the most consistent approach would be the adding of a new AFAIK, this is the only such option, w.r.t VS2022. Not sure about #58085, tho. |
This issue has been moved from a ticket on Developer Community.
In VS 2019 16.5 a new C# code style option appeared in the Options window.
Prefer 'System.HashCode' in 'GetHashCode'
However, if you export the .editorconfig file, this option isn't present.
It is also not documented on any of the doc pages
https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference?view=vs-2019
I assume as all the other code style options are, this should also be.
Original Comments
Visual Studio Feedback System on 3/22/2020, 11:12 PM:
We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.
Original Solutions
(no solutions)
The text was updated successfully, but these errors were encountered: