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

Undoing a change should not select the entire file's contents #1

Closed tonyarnold closed 10 years ago

tonyarnold commented 10 years ago

The selection range after undoing should remain unchanged from what was selected before the undo. This is probably going to be a bit of a bugger to fix, but you could have a look at how @benoitsan does the same thing in BBUncrustifyPlugin.

travisjeffery commented 10 years ago

:boom: done

also, you can now select files in the project navigator and format them all at once

tonyarnold commented 10 years ago

Awesome! How do I just format lines within an open file? The only options I see are "Format active file" and "Format selected files"

tonyarnold commented 10 years ago

Oh, I see. I'd use different wording for that option, but I understand now :smile:

travisjeffery commented 10 years ago

yep probably a good idea. done.