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

Warn on conflict between .editorconfig and manually chosen indentation settings #329

Open
ab-pm opened this issue Dec 7, 2021 · 0 comments

Comments

@ab-pm
Copy link

ab-pm commented Dec 7, 2021

I just had an issue very similar to this one - every time I switched between files, the autodetected indentation settings would be overwritten by something that didn't fit to the style of the file, very annoying. Looking in the vscode settings I only found editor.detectIndentation = true. It took me some time until I figured out the editorconfig extension was responsible for this, and my .editorconfig was missing entries for this particular file type.

Would it be possible to hook into the "Select indentation" command (and also in the "Detect indentation from content" command), and emit a warning message if there is a .editorconfig file that resolves to a conflicting setting?

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

1 participant