Original link: https://jasonkayzk.github.io/2022/07/05/%E9%85%8D%E7%BD%AEClion%E4%B8%AD%E7%9A%84%E4%BB%A3% E7%A0%81%E9%A3%8E%E6%A0%BC/
Generally, when writing C++, we will use Google’s code style;
It can be directly configured in Clion;
Configure the code style in Clion
The configuration is as follows:
Editor
=> Code Style
=> C/C++
=> Set From…
Choose Google
to save it!
Specific official documents:
This article is reprinted from: https://jasonkayzk.github.io/2022/07/05/%E9%85%8D%E7%BD%AEClion%E4%B8%AD%E7%9A%84%E4%BB%A3% E7%A0%81%E9%A3%8E%E6%A0%BC/
This site is for inclusion only, and the copyright belongs to the original author.