Format cpp code better

Install clang format tools

sudo apt install clang-format

Then issue this command in your folder

clang-format -i -style=file $(find . -regex '.*\.\(cpp\|c\|hpp\|h\)')

This will format your code beautifully

Leave a comment