开发者

How to change autocomplete braces in Xcode 4 [duplicate]

开发者 https://www.devze.com 2023-02-16 23:34 出处:网络
This question already has answers here: 开发者_StackOverflow Closed 10 years ago. Possible Duplicate:
This question already has answers here: 开发者_StackOverflow Closed 10 years ago.

Possible Duplicate:

Xcode 4 with opening brace on new line

I just want to change the braces style to

if (condition)
{

}

from the default style

if(condition) {
}

I cannot find the com.apple.Xcode plist after I installed the Xcode 4. So I'm not able to modify the xccodesenseformattingoptions BlockSeparator to \n.

Please help

Thankz in advance


You can replace the SystemCodeSnippets.codesnippets file, as detailed here: http://zurb.com/forrst/posts/Put_that_where_it_might_belong_Xcode-PNL

I don't know if the same file will work in Xcode 4.3, but it's worth a try. Because everything is bundled up together now, the new location of the file you need to replace is /Applications/Xcode.app/Contents/PlugIns/IDECodeSnippetLibrary.ideplugin/Contents/Resources/SystemCodeSnippets.codesnippets.


For XCode 4 it's a little more complicated. See detailed answer here:

Xcode 4 with opening brace on new line


In xcode 4.3.1 you must manually edit the snippets located at:

/Applications/Xcode.app/Contents/PlugIns/IDECodeSnippetLibrary.ideplugin/Contents/Resources/SystemCodeSnippets.codesnippets

There does not seem to be an easier way.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号