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

xCode Key Bindings #8

Closed orkenstein closed 10 years ago

orkenstein commented 10 years ago

How to add key bindings for Clang Format? For example i wanna bind "Format Selected Text" on Shift-Cmd-F. How to achieve that? Thanks!

tonyarnold commented 10 years ago

There's information about how to assign keyboard shortcuts in the main readme.

orkenstein commented 10 years ago

I already read it, but cannot understand, how it works and what should happen. Please, give me more detailed answer. Sorry for silly questions.

orkenstein commented 10 years ago

D'oh! The Key was - u must enter EXACT command name from Clang menu. I think better add this to Readme file.