Using the clang command on linux to expand tabs to blanks and set column limit ------------------------------------------------------------------------------ From within the current directory, enter: clang-format -i -style='{IndentWidth: 4, ColumnLimit: 80}' *.cpp *.h The * applies to all files ending in .cpp and .h. Sets the indent width to 4 spaces (change to 3 to indent by 3) and the column limit to 80. Important note: If you want to view the changes before they're overwritten to the file, remove the -i option and it'll display your files to the terminal.