如何更改 Eclipse 自动生成的 header 评论?
How can one change the header comment auto generated by eclipse?
Eclipse CDT 在 header 文件中生成注释,看起来很像这样:
/*
* Foo.hpp
*
* Created on: Mar 27, 2017
* Author: jeremiah
*/
如何改变 header?我只是希望它包含正常的 "This-file-is-protected-by-this-licence" 类型的内容。
这里可以设置文件头注释:
Window -> 首选项 -> C/C++ -> 代码风格 -> 代码模板 -> 评论 -> 文件
Eclipse CDT 在 header 文件中生成注释,看起来很像这样:
/*
* Foo.hpp
*
* Created on: Mar 27, 2017
* Author: jeremiah
*/
如何改变 header?我只是希望它包含正常的 "This-file-is-protected-by-this-licence" 类型的内容。
这里可以设置文件头注释:
Window -> 首选项 -> C/C++ -> 代码风格 -> 代码模板 -> 评论 -> 文件