终端: sudo apt-get install clang-format 然后QtCreator上方功能栏:help -> about plugins,将 Beautifier 打开,重启QtCreator即可