-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Description
This issue has been moved from a ticket on Developer Community.
[severity:It bothers me. A fix would be nice]
.editorconfig is not being respected by Visual Studio!!!
I have my line endings set for Line Feed (\n) and yet Visual Studio is not respecting it even after performing Code Formatting(Ctrl+K, Ctrl+E) or event after restarting Visual Studio!
Original Comments
Tracy Wang [MSFT] on 11/16/2021, 07:19 PM:
Does this reproduce for all project or specific project? If it’s reproduce with the specific project, which project do you use(C# , C++ console, Web, UWP or others )? In order for us to investigate this further, could you please provide repro steps, a more detailed description of the faulty behavior and the actions you were taking when the issue appeared to help us better understand this scenario? What is the actual result and which result do you expect to happen?
Justine Ang on 11/17/2021, 06:54 AM:
(private comment, text removed)
Feedback Bot on 11/17/2021, 06:03 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.
Jiahui Zhang (Beyondsoft Corporation) [MSFT] on 11/23/2021, 01:35 AM:
Thank you for your feedback! We tried to reproduce this issue in 17.0.1 with following steps:
- Create a C# Class Library project.
- Add a .editorconfig file to this project.
- Update the content of .editorconfig to:
root = true
[*]
end_of_line = lf
4. Open Class1.cs and press “Ctrl + K, Ctrl + E”
The code formatting will change as the video below:
Is this issue same as yours? If not, can you help with following questions:
- Are you installed any extensions and third party plugins? (Such as Resharper? Could you try to uninstall other extensions and third party plugins and then check whether this issue also reproduces or not?)
- Would it be possible to provide us a sample solution?
- Can you provide us a screenshot or a repro video using https://www.screentogif.com/ or a similar tool?
- If we misunderstood your question, would you please help to correct us?
Please feel free to let us know if you have any doubt. We look forward to hearing from you
Justine Ang on 11/27/2021, 08:46 AM:
(private comment, text removed)
Jiahui Zhang (Beyondsoft Corporation) [MSFT] on 11/29/2021, 01:31 AM:
Thank you for sharing us details of this issue! We are able to reproduce this issue and we found the .editorconfig will only work when adding new files. It does not change the line endings when formatting the code. We have reported a bug to our engineer and they will investigate this issue. We are currently prioritizing problems that are impacting a broad set of our customers, so we may not be able to investigate this one immediately. We know this problem is important to you, so we will continue to monitor it.
Thank you for helping us build a better Visual Studio!
Oleg Tkachenko [MSFT] on 11/29/2021, 07:24 AM:
Justine Ang, thanks for feedback. You need to configure Code Cleanup to format document, but default it doesn’t perform that action.
Justine Ang on 11/29/2021, 08:23 PM:
Oleg Tkachenko [MSFT], Format document was included on my fixers, right after Sort imports.
Feedback Bot on 3/1/2022, 11:55 PM:
I detected that this issue hasn’t received a lot of activity, votes, or comments in the past 90 days. Based on this, the issues severity and affected area, it’s my experience that this issue is unlikely to get fixed. To improve the situation, consider following best practices for quality problem reports, and giving us more details on how this issue is impacting you.
Original Solutions
(no solutions)