I started to contact PHP yesterday and didn't learn iOS, but I still wrote
People who are familiar with Visual Studio and use XCode will always have various complaints. One of the common complaints is:
XCode's terrible code format and intelligent prompt (intelliisense)
First, let's talk about intelliisense. XCode will automatically complete the Code. For example, after adding a "{", "}" will automatically appear.
But I personally don't like this kind of caring. The Resharper that I used when I used to write C # is similar to this style. However, when I wrote more, I felt that it was quite easy to write it by myself.
The auto-completion function often leaves several placeholder to replace the actual code. However, sometimes the content of the actual code is the same as that of placeholder, so the code looks correct and the actual compilation fails... At least change the color.
XCode lacks the code format tool that I think is essential.
In Visual Studio, there is an automatic code format tool for CTRL + K and D. Other ides I have used, such as Eclipse and NetBeans, and Mono Developer, a relative of. However, XCode only has a poor Ctrl I (if mac style is used, it is ^ I), which is used to align the Code with no alignment in the front space, you must also select the code to align (you can also select Command + A to select all the code ). The term in XCode is Re-Indent. But like automatically adding spaces before and after the equal sign? Sorry, no.
XCode does not think that entering spaces before and after the equal sign is a very disturbing behavior...
We recommend that you use an uncrustify plug-in:
Http://stackoverflow.com/questions/561474/objective-c-style-formatter
For download, see:
Http://sourceforge.net/projects/uncrustify/files/uncrustify/
I have never tried it. If you are interested, try it.
Why? It seems like I wrote a complaint... Forget it. This topic is here. I will get used to it when I use more, probably.