Skip to content
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

Doesn't reset to defaults when switching to a project with no .editorconfig #27

Open
JRosanowski opened this issue Oct 3, 2015 · 1 comment

Comments

@JRosanowski
Copy link

Newbie here. I'm not sure if this is a bug or to be expected. I'm using the latest version 0.5.0 with VS2015.

I set up a .editorconfig file like this for a cpp project. My default setting is 2 spaces for indents.

root = true

[*]
indent_style = space
indent_size = 4

So I open the project with the .editorconfig and it changes the indent to 4. Now I switch back to the other project using open recent and the indent size is still 4 spaces. I was expecting it to switch back to an indent size of 2. Anyone have any insight?

@SamB
Copy link

SamB commented Nov 3, 2015

Something similar also happens if I'm, say, editing stuff in a project/solution with no .editorconfig and then happen to open a file or two from a directory that has a dominating .editorconfig, say visualfsharp vs roslyn; after I do that, I can very easily end up with the wrong settings. I think this can even happen if the .editorconfig would have assigned different settings to the victim file(s)!

(This would be ever so much less painful if it were possible to specify that a given section not touch the XML editor settings... or even configure the plugin to never change the indentation amount for the XML editor. Mostly because there are so very many filename extensions used for various sorts of MSBuild files ...)

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