一般在写C++的时候,我们会使用Google的代码风格;
在Clion中可以直接配置;
<br/>
配置如下:
Editor => Code Style => C/C++ => Set From…
Editor
Code Style
C/C++
Set From…
选择 Google 保存即可!
Google
具体官方文档: https://www.jetbrains.com/help/clion/predefined-code-styles.html
具体官方文档: