[Request] Indentation Option for e.g. Sass
Closed this issue · 5 comments
Hello,
an "indentation" option would be cool, to keep code consistent.
Something like:
{
"indentation": {
"type": "tab",
"size": 4
}
}
Good idea, although I think it would be much nicer to just support editorconfig. So if there is a .editorconfig file it will output the css files in the right format. What do you think?
Not everyone knows about editorconfig, sadly. But yeah, that would be awesome.
How about this:
// your current settings, if nothing is provided for indentation
// use editorconfig file if there is one present
// custom settings
{ "indentation": { "type": "tab", "size": 4 }
I think that would give everyone enough flexibility to use what they want. :-)
@CREEATION the problem is that if you already have an EditorConfig file you have to then RE-config the indentation in the case of this tool, which is counter-productive.
@aslansky has a good point. This is definitely a case in which you would want to adopt EditorConfig settings.
With sprity 1.0.0 you can now configure the indentation style.