Xcode source automatic formatting

后端 未结 19 628
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-29 16:10

As a C# developer, I have become highly dependent on the automatic formatting in Visual Studio 2008. Specifically, I will use the CTRL + K , D

相关标签:
19条回答
  • 2020-11-29 16:49

    First, Examine XCode Preferences "Indentation" section. You can customize things quite a bit there...

    For more fine grained control, refer to the XCode User Defaults document from apple. (May require a developer login to view). For example, I was able to disable the "indent on paste" by entering the following in terminal:

    defaults write com.apple.XCODE PBXIndentOnPaste No
    

    to read back your setting:

    defaults read com.apple.XCODE PBXIndentOnPaste
    
    0 讨论(0)
提交回复
热议问题