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

How to install? #126

Open aggrolite opened 7 years ago

aggrolite commented 7 years ago

Hi,

I am confused about this line in the documentation:

Clone this repo, build and run ClangFormat, restart Xcode.

I assume it means to run open ClangFormat.xcodeproj, build the project, and run the code.

After doing that and restarting Xcode, the Edit menu does not contain a Clang Format submenu (as shown in the GIF).

Am I missing something obvious?

Xcode 7.3.1

aggrolite commented 7 years ago

OK, so I was able to install the plugin using Alcatraz.

However, I had no idea what Alcatraz was, and the fact that Alcatraz is lacking a README on their repo (which is linked from this project's documentation) made things difficult.

So I installed following steps here: http://alcatraz.io/

curl -fsSL https://raw.githubusercontent.com/supermarin/Alcatraz/deploy/Scripts/install.sh | sh

I'm thinking the README needs to mention http://alcatraz.io, not its dead-looking repository.

I am still wondering about the git repo installation steps though...

travisjeffery commented 7 years ago

Just updated the link for alcatraz to point to alcatraz.io