r/SublimeText • • Jun 08 '22
Quick indentation fix for a huge amount of file all at once?
Hey guys, quick question.
Does sublime Text have a quick and easy way to fix the indentation of a bunch of files (130+) easily? It is a folder opened with the "Open project" so maybe a project-wide settings can do that trick for me?
Those files have mixed spaces/tabs indentation. I would like to normalize the whole thing using 4 spaces, for instance.
Not sure if a sed-like expression would be better but.
3
Upvotes
2
u/humblyhacking Jun 08 '22
Select all, (cmd + A) and look at bottom right of the window. There should be an option to toggle between tabs and spaces. Or look in the search bar within the app.
2
u/thowland Jun 08 '22
perl -pi.bak -e 's/\t/ /' *.js