Written By Tomy Stark.
E-mail: ro7enkranz@qq.com
Ver 1.0.0
Note:
Eclipse 系 IDE 自动化
- Window -> Preference -> C/C++ -> Code Style -> Code Templates -> Comments -> Files
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
|
2. Eclipse 系 IDE 新建.c文件时自动添加默认模板函数
- Window -> Preference -> C/C++ -> Code Style -> Code Templates -> Files -> C Source File -> Default C Source Template
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| ${filecomment} ${includes} #include "${file_base}.h"
${declarations}
void ${file_base}_Init(void) { }
|
3. Eclipse 系 IDE 新建.h文件时自动添加默认模板函数声明
- Window -> Preference -> C/C++ -> Code Style -> Code Templates -> Files -> C Header File -> Default C Header Template
1 2 3 4 5 6 7 8 9 10 11
| ${filecomment} #ifndef ${include_guard_symbol} #define ${include_guard_symbol}
${includes}
${declarations}
void ${file_base}_Init(void);
#endif
|