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

HotKey/KeyCombination #3

Closed gabrielribeiro closed 10 years ago

gabrielribeiro commented 10 years ago

How about hotkey or key combination for formatting selected text or entire file? Would be so good! Unfortunatelly, I don't know how to develop it =/

tonyarnold commented 10 years ago

Just set a shortcut using the Keyboard system preferences. There's no need for the plugin to do this.

travisjeffery commented 10 years ago

Yep, @tonyarnold's got it.

travisjeffery commented 10 years ago

If you set Format on save, you just have to hit cmd-s btw.

gabrielribeiro commented 10 years ago

Ok, thanks.

travisjeffery commented 10 years ago

@gribeiro-mobirama i added some info to the readme for this: https://github.com/travisjeffery/ClangFormat-Xcode#assign-keyboard-shortcuts

gabrielribeiro commented 10 years ago

Thanks a lot Travis.