使用clion的过程中,发现每创建一个文件,系统就会自动在头部生成注释信息:

//
// Created by <username> on 2020/2/7.
//

这个是因为开启了代码模板导致的,配置在:

Settings → Editor → File and Code Templates → Includes → C File Header

直接把这个配置删掉就可以了,注意是删掉里面的内容,不要把这一栏删掉了

参考

File and Code Templates

Turning off “created by” header when generating files in CLion

最后修改:2020 年 02 月 07 日
如果觉得我的文章对你有用,请随意赞赏