2011-01-26 172 views
5

每當我在XCode中創建一個新文件時,它會在文件的頂部進行一些註釋。 最近它發生了某種變化 - 我不知道爲什麼以及如何重置這個。XCode自動生成評論?

它現在這個樣子:

// 
// [Filename.cpp] 
// [Projectname] 
// 
// Created by [Name] on [Date] 
// Copyright 2011 [Company]. All rights reserved. 
// 

但首先是這樣的:

/* 
* [Filename.cpp] 
* [Projectname] 
* 
* Created by [Name] on [Date] 
* Copyright 2011 [Company]. All rights reserved. 
* 
*/ 

那麼有沒有一些設置,其中自動生成的意見,我可以重置這種風格?我可以在哪裏改變這個?

回答

3

在默認安裝中,目錄「/ Developer/Library/XCode/File Templates」包含所有新文件模板。

+0

in 4.5:/Applications/Xcode.app/Contents/Developer/Library/XCode/Templates – amleszk 2012-09-24 14:34:52

2

它在模板文件中;這裏有一篇關於providing custom templates的文章(路徑可能已經改變,但是該技術仍然有效)。