AI-generated files using wrong line endings

My solution has an .editorconfig file which specifies:

end_of_line = crlf

All of the existing files in my solution us CRLF for line endings.

And yet, when I use the AI Assistant to generate tests for a new class, the generated test file uses LF for line endings.

When I edit the new test file, it ends up with inconsistent line endings, which confuses Visual Studio, so I get bombarded with constant infobar warnings telling me that “Feature 'Diagnostic analyzer runner` is not available”.

Is there an option to tell the AI assistant to respect the .editorconfig settings? Or at least to always use CRLF?

0

Please sign in to leave a comment.