Closed xml closed 5 years ago
I tried your .editorconfig with a Makefile
and it did not convert tabs to spaces.
Hello, same problem here, less file get changed to space when I save.
config:
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.js]
indent_size = 4
indent_style = space
[*.less]
indent_size = 4
indent_style = tab
[src/**]
indent_size = 4
indent_style = space
[*.md]
trim_trailing_whitespace = false
Try disabling all other plugins to ensure it's not something else that interferes.
"detect_indentation": false
fixed it for me
Hi. First, the plugin is super-helpful. Thank you very much for it.
For the first time ever, I seem to be encountering a defect, however. Either that, or I'm totally misreading my docs and config format.
I've got a makefile, where the tabs are significant. But, editorconfig seems to be the culprit in converting all my tabs back to spaces every time I save. So, i use the "Convert Indentation to Tabs" command to put it back. Which works. Then I save... and it's spaces again.
(Is auto-converting indents on save a feature of editorconfig, or some other plugin that's interacting with it?)
Notably, when I go into
.editorconfig
and convert the defaultindent_style
totab
, then try to save my makefile again, it's fine.Here's my project's
.editorconfig
, with make-specific overrides at bottom:And here are the Sublime syntax-specific settings:
Am I reading this right, or just overlooking a configuration detail? Thanks!