EditorConfig has * section that overrides others but cannot be changed within Rider?
Hi everyone,
today I tried to figure out why trailing line breaks were removed from my C++ source files even though I had enabled trailing line breaks in code style settings and disabled removal of trailing blank lines on save. It turned out I had a [*] section in my .editorconfig that had insert_final_newline set to false. However, this .editorconfig was created by Rider in the same project after I had setup my code style. So I wonder why a general section was created at all, since Rider does not even have a general code style configuration tab, and why it contained a setting I never chose. What could have caused this?
This is in Rider 2025.3.3 used with Unreal Engine 5.6.
Thanks!
Please sign in to leave a comment.
Thank you for contacting Rider support and for sharing your experienc. I see, I registered this issue: RIDER-136794 Export to editor config generates non-expected insert_final_newline, trim_trailing_whitespace that might mismatch with expectations
Development team will take a look.
Meantime, the workaround is to manually remove the non-needed settings from the generated .editorconfig.
Have a nice day!