- 进入编辑目录
$cd /Applications/Xcode.app/Contents/Developer/Library/Xcode/Templates/File Templates/Source/C++ File.xctemplate/WithHeader/
- 将
___FILEBASENAME___.hpp
修改为___FILEBASENAME___.h
- 编辑
___FILEBASENAME___.h
#ifndef ___FILEBASENAMEASIDENTIFIER____h#define ___FILEBASENAMEASIDENTIFIER____h#include <stdio.h>#endif /* ___FILEBASENAMEASIDENTIFIER____h */
- 编辑
___FILEBASENAME___.cpp
#include "___FILEBASENAME___.h"