Is there a way to reposition the bracket and padding in Xcode?

I want to change the default behavior for Xcode (4) to align the brackets:

- (BOOL)someValue { return _someValue; } 

For this:

 - (BOOL)someValue { return _someValue; } 

I looked at the docs here:

http://developer.apple.com/library/ios/#documentation/DeveloperTools/Reference/XcodeUserDefaultRef/100-Xcode_User_Defaults/UserDefaultRef.html#//apple_ref/doc/uid/TP40005535-CH3-SW57

But I still do not understand how to make changes. Any help?

+4
source share
2 answers

First, the documentation you are talking about is for Xcode 3.1 (I linked the introduction page, which speaks so clearly). Judging by the number of comments on devforums.apple.com about this, I think that the XCCodeSenseFormattingOptions key no longer exists according to the new XCode4 default values ​​(which are stored under the package identifier com.apple.dt.XCode ). If you want this feature to be restored, it will report an error with Apple .

Secondly, you can do what you are looking for by changing templates. I found this very close question , but there is no tacit confirmation that the proposal really succeeded.

+3
source

You can try using the Snippet Edit application, which makes it easy to edit all provided code snippets. You will need to use Xcode v4.3 or later, but if you want to use it.

The app can be found at http://cocoaholic.com/snippet_edit/

0
source

Source: https://habr.com/ru/post/1383268/


All Articles