Should this plugin support converting/fixing indentation?
See original GitHub issueAs requested in @jedmao’s comment in my PR #84, let’s discuss if this extension should support converting indentation.
I feel that a feature like this has its place in any EditorConfig extension. I’m specifying indent style in my .editorconfig, so I’d expect it to behave just like other properties (end_of_line
, insert_final_newline
, trim_trailing_whitespace
).
All of the above mentioned properties change the file in some way (inconsistently in this extension, some are applied on load and some automatically on save, but that’s for another issue).
I use .editorconfig as the single source of truth for line endings, indentation style etc. - so I expect EditorConfig to change my files accordingly to my config without remembering to format code manually all the time. Maybe I’m doing it wrong, who knows?
Thoughts?
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
I agree with @jedmao . However, for your purpose, you may consider a standalone fixer to be used, instead of being a feature of the editor extensions/plugins.
I see. Thanks for your feedback!