Skip to content

.editorconfig sync formatting between IDEs #6086

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

Closed
tesar-tech opened this issue Apr 19, 2025 · 1 comment
Closed

.editorconfig sync formatting between IDEs #6086

tesar-tech opened this issue Apr 19, 2025 · 1 comment

Comments

@tesar-tech
Copy link
Collaborator

Which brings us to another problem. You mostly work with Rider, so often I have to fix formatting, as you have probably already noticed. Is there anything in Rided that can make it work to behave the same as VS?

Originally posted by @stsrki in #6084 (comment)

Rider can respect .editorconfig, but when the editor config isn't present it do its own formatting.

That's the same for VS, so I suspect not all the setting applied when formatting the code in VS are coming from .editorconfig.

Can you try to "export" as much setting as possible into .editorconfig @stsrki ? While avoiding the .vs/config/applicationhost.config and .sln.DotSettings.

I will then try to force rider to not be clever about the rest.

@stsrki
Copy link
Collaborator

stsrki commented Apr 22, 2025

I could. But I think it is best to do it on your side. Basically, open any larger .cs file and format it in Rider. If anything changes, that means you need to add a setting to .editorconfig. Rinse and repeat. That's how I basically did in many moons ago.

@stsrki stsrki closed this as completed Jun 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants