Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comment and NSString wraps on format #97

Open
memreas opened this issue Aug 12, 2015 · 0 comments
Open

Comment and NSString wraps on format #97

memreas opened this issue Aug 12, 2015 · 0 comments

Comments

@memreas
Copy link

memreas commented Aug 12, 2015

Hi,
This software is great but since XCode 6.4 came out I've seen this issue come up where when I save comments are wrapped after each word and the same goes for NSStings. Here are examples:

NSString:

                                                             if (error == nil) {
                                                               NSLog(@"image "
                                                                     @"stored "
                                                                     @"as "
                                                                     @"alasset"
                                                                     @" %@",
                                                                     assetURL);
                                                             } else {
                                                               NSLog(@"error "
                                                                     @"stori"
                                                                     @"ng "
                                                                     @"image"
                                                                     @" as "
                                                                     @"alass"
                                                                     @"et");
                                                             }

Comment:

                                                             // end
                                                             // ALAssetsLibrary
                                                             // completion
                                                             // block

I've tried to add this to my projects .clang-format file:

BasedOnStyle: LLVM
IndentWidth: 8
UseTab: Always
BreakBeforeBraces: Linux
AllowShortIfStatementsOnASingleLine: false
IndentCaseLabels: false
ColumnLimit: 0

I've also tried just ColumnLimit:0 as the only line in the file but that didn't seem to work. This happens mostly when I have embedded completion blocks which push out the code to the column limit but trying to set the column limit didn't seem to fix it.

I could be wrong it may be just configuration?

Thanks,
John

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant