It is possible to set the line endings for a file. This converts existing line endings, and works when adding a manual line break. However, it does not seem to insert the correct line endings when formatting a document or when auto-formatting is triggered (for example when adding a closing brace }
).
I have tried the .editorconfig file, which works for things like spaces vs. tabs, but doesn't solve the formatting line ending issue either.
Did anyone succeed at this? Or is the only way to use a Visual Studio extension?
Related questions: