Occasionally I run across a source file with tabs in it.
There are many ways to remove tabs. I prefer to use perl from the command line.
Replace all tabs with two spaces in a command line perl script:
perl -pe ‘s/\t/ /g’ -i myFile.cpp
And, with bash, do it for all files in a directory that have a tab
for f in $(grep -l ‘\t’ *.h *.cpp);do
perl -pe ‘s/\t/ /g’ -i $f;