Monday, September 23, 2013

xcode code style issues

I xcode novice, exhibitions
I want the code below
 for (int i = 0; i <9 data-blogger-escaped-br="" data-blogger-escaped-i="">
} 


Change this
 
for (int i = 0; i <9 data-blogger-escaped-br="" data-blogger-escaped-i="">{

} 




But I found my right structure-> re-indent after indent {align left only counterparts.
Style does not unify a left parenthesis, left parenthesis conditions put behind, it will not start a new line
left parenthesisI think how you can do the same style?
There is a code completion xcode configuration file has been rewritten as
 
 
 IDECodeSnippetVersion  
 1  
 IDECodeSnippetCompletionPrefix  
 for  
 IDECodeSnippetContents  
 for (< # initialization # >; < # condition # >; < # increment # >) 
{
< # statements # > 
}  

But after the restart, or invalid
Reply:
duile my xcode version is 4.6.1
Reply:
4.6.1 can be modified to adjust the code style ~

Complete code inventory system automatically put / Applications / Xcode.app / Contents / PlugIns / IDECodeSnippetLibrary.ideplugin / Contents / Resources / SystemCodeSnippets.codesnippets

Make a copy to the desktop, and then use TextWrangler modify Well, replace the copy back on the line.

If you want to change C / C + +, you can find the tag <! - C completions -> and <! - C + + completions -> comment tags to modify these two behind the entire contents.

The reason why you just did not feel the modified effective, probably modify the language of the OC, right? If you do not want to modify too, there is the edited on github, you can copy down.
Address: https://gist.github.com/cdfmr/1992813
Reply:

xcode 5.0 in accordance with the path to find the file, manually modify, re-open xcode effective, thank you

No comments:

Post a Comment