Closed mysterycommand closed 9 years ago
Yeah, that's a bug, or rather the problem is that Sublime doesn't do anything with spaces when you change the indentation size.
A fix for this plugin might be to use the file detected indentation (in this case 2 space) and convert to tab indentation, set indentation size to 4 and then convert back to spaces. That seems to be the only way in Sublime to change the indentation. I'm open to suggestions though.
Can that process be automated/handled by the package, or you mean just via the UI in the bottom right? I've done that before, but it's pretty tedious if you're trying to standardize across a project with mixed file configs … also, doesn't help in the case of mixed indentation … though I'm not sure what could be done programmatically to handle that.
Anyway, thanks for the feedback.
Can that process be automated/handled by the package
Yes, that's what I was trying to imply.
Well then that sounds awesome. :+1:
Any news on automating that process?
+1
+1 on this
also, trim_trailing_whitespace = true
doesnt seem to be working on ST3 either.
A few of these issues seem to indicate that this plugin should enforce a
.editorconfig
's rules on a file when that file is saved, but I have a JS file with 2-space indentation that I want to convert to 4-space indentation and saving, opening, etc. the file isn't doing anything. Am I misinterpreting what this plugin is supposed to do? SublimeText 3, Build 3059 on Mac OS X 10.9.4. Here's my.editorconfig
:… and here's my ST3 console (I don't know if this is actually useful):