Last Updated: February 25, 2016
·
244
· maikel22

Switching your entire project to tabs/spaces

In case you want to switch from tabs to spaces:

cd your/project/dir && \
find ./**/*.(sass|coffee|js|html|svg) -type f -exec sed -i 's/\t/    /g' {} +

and vice versa:

cd your/project/dir && \
find ./**/*.(sass|coffee|js|html|svg) -type f -exec sed -i 's/    /\t/g' {} +

WARNING:
Be careful with your .git folder

Via http://stackoverflow.com/questions/11094383/how-can-i-convert-tabs-to-spaces-in-every-file-of-a-directory