travisjeffery / ClangFormat-Xcode

Xcode plug-in to to use clang-format from in Xcode and consistently format your code with Clang
https://twitter.com/travisjeffery
MIT License
2.89k stars 288 forks source link

Fixed issue #69 #77

Closed yixiang closed 9 years ago

yixiang commented 9 years ago

Fixed issue #69. Indentation resets when formatting selected range.

yixiang commented 9 years ago

Now the text selection after formatting is correct.

tonyarnold commented 9 years ago

It's much better, but still having some issues:

screen shot 2015-03-25 at 10 13 17

After formatting:

screen shot 2015-03-25 at 10 13 29

Also, you don't need to open a new PR to make changes — just push any updates to your indent branch and this PR will automatically include them.

yixiang commented 9 years ago

I've fixed the one-off error you pointed out. I think it's pretty solid now.

tonyarnold commented 9 years ago

:+1: agreed. Thanks for resolving the problems! /cc @travisjeffery

travisjeffery commented 9 years ago

:+1: Thanks fellas!