-
-
Notifications
You must be signed in to change notification settings - Fork 113
EditorConfig plugin overrides global settings for indent width and style #1204
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
Conversation
danirabbit
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, this doesn't seem to work for me. When I open an xml file in a project with an editorconfig (such as code) I still get 4 space indent instead of 2
|
@danrabbit It works for me under those circumstances. You have to have in the editor-config file (after the [*] setting) |
|
Also you have to install the PR in order to update the plugin - or use the Flatpak version |
|
Maybe this is another candidate for moving into the main code? |
danirabbit
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works as expected, thanks for fixing this!
Fixes #1203
.editorconfigfile so that it does not duplicate/conflict with global setting of indent width and style.It was noticed that although
indent-widthandtab-widthare separate properties of SourceView, there is no facility in the existing code for these to be set separately so these are treated the same by the plugin (and only one specified in the config file). If both were specified in a config file then the last one would have priority. If there are situations where these need to be set separately additional code will be required.There is no facility to update the
.editorconfigfile through the UI (except by manual editing). That could be added as a future PR if required.Input required on the user facing copy.