Created
January 21, 2012 19:11
-
-
Save hazzik/1653629 to your computer and use it in GitHub Desktop.
Convert tabs to spaces and vice-versa for all *.cs files inside directory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FOR /R . %%G IN (*.cs) DO ( | |
"C:\Program Files\GnuWin32\bin\expand" --tabs=4 --initial "%%G">"%%G.1" | |
del "%%G" | |
move "%%G.1" "%%G" ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FOR /R . %%G IN (*.cs) DO ( | |
"C:\Program Files\GnuWin32\bin\unexpand" --tabs=4 --first-only "%%G">"%%G.1" | |
del "%%G" | |
move "%%G.1" "%%G" ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment