2016.0724.1619
mac v10.11.5 + xcode v7.3.1
發現創建 c++ 文件勾選 Also create a header file 時,創建的頭文件變成了 hpp
hpp 寫法上有些限制,沒有 h 舒服,所以把代碼模板文件修改下,以便於偷懶,路徑:
/Applications/Xcode.app/Contents/Developer/Library/Xcode/Templates/File Templates/Source/C++ File.xctemplate
修改很簡單,把 hpp 重命名爲 h,然後修改下 h 和 cpp 文件中相關的文本(弄完後無效可嘗試重啓 xcode)