I already had mixed up indentation in some other files. Maybe it would be a good idea to use spaces instead of tabs consistently.
Most programming languages use Spaces and there are some other advantages (https://wiki.c2.com/?TabsVersusSpaces).
I used the following sed script to apply the changes per folder:
the -i.orig can be replaced with -i'' to not create backup files.
I already had mixed up indentation in some other files. Maybe it would be a good idea to use spaces instead of tabs consistently.
Most programming languages use Spaces and there are some other advantages (https://wiki.c2.com/?TabsVersusSpaces).
I used the following sed script to apply the changes per folder:
```sh
find . -maxdepth 1 \( -iname *.h -o -iname *.cpp -o -iname *.tpp -o -iname CMakeLists.txt \) -type f -exec sed -i.orig $'s/\t/ /g' {} +
```
Or recursively
```sh
find . \( -iname \*.h -o -iname \*.cpp -o -iname \*.tpp -o -iname CMakeLists.txt \) -type f -exec sed -i.orig $'s/\t/ /g' {} +
```
the `-i.orig` can be replaced with `-i''` to not create backup files.
muellerr
changed title from replaced tabs by spaces with sed script to replaced tabs by spaces for some folders with sed script2021-01-28 12:02:23 +01:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
I already had mixed up indentation in some other files. Maybe it would be a good idea to use spaces instead of tabs consistently.
Most programming languages use Spaces and there are some other advantages (https://wiki.c2.com/?TabsVersusSpaces).
I used the following sed script to apply the changes per folder:
Or recursively
the
-i.origcan be replaced with-i''to not create backup files.replaced tabs by spaces with sed scriptto replaced tabs by spaces for some folders with sed script