IOS Study Notes 2-Code Format

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.