Last active
March 4, 2016 11:10
-
-
Save dev4dev/9b05eb36ec37f9eb5f50 to your computer and use it in GitHub Desktop.
Revisions
-
dev4dev revised this gist
Mar 4, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,7 +7,7 @@ 4. Download [.clang-format.yml](https://gist.github.com/dev4dev/78d0508304558e969b2a/raw/9bab5aefe2e29f4b7b6a5560642618e1e78b397c/.clang-format.yml) to your home directory ``` bash curl -L -o ~/.clang-format https://gist.github.com/dev4dev/78d0508304558e969b2a/raw/9bab5aefe2e29f4b7b6a5560642618e1e78b397c/.clang-format.yml ``` 5. In Xcode select menu `Edit` -> `Clang Format` -> `File` to use rules from downloaded .clang-format file 6. Use menu items `Edit` -> `Clang Format` -> `Format *` to format code 7. (_Optional_) If you are a lazy ass, you can select `Edit` -> `Clang Format` -> `Enable Format on Save`, thus code will be formatted right before saving to a file -
dev4dev revised this gist
Mar 4, 2016 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,9 +5,9 @@  3. Restart Xcode 4. Download [.clang-format.yml](https://gist.github.com/dev4dev/78d0508304558e969b2a/raw/9bab5aefe2e29f4b7b6a5560642618e1e78b397c/.clang-format.yml) to your home directory ``` bash curl -L -o ~/.clang-format https://gist.github.com/dev4dev/78d0508304558e969b2a/raw/9bab5aefe2e29f4b7b6a5560642618e1e78b397c/.clang-format.yml ``` 5. In Xcode select menu `Edit` -> `Clang Format` -> `File` to use rules from downloaded .clang-format file 6. Use menu items `Edit` -> `Clang Format` -> `Format *` to format code 7. (_Optional_) If you are a lazy ass, you can select `Edit` -> `Clang Format` -> `Enable Format on Save`, thus code will be formatted right before saving to a file -
dev4dev revised this gist
Mar 4, 2016 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,6 +5,9 @@  3. Restart Xcode 4. Download [.clang-format.yml](https://gist.github.com/dev4dev/78d0508304558e969b2a/raw/9bab5aefe2e29f4b7b6a5560642618e1e78b397c/.clang-format.yml) to your home directory ``` bash curl -L -o ~/.clang-format https://gist.github.com/dev4dev/78d0508304558e969b2a/raw/9bab5aefe2e29f4b7b6a5560642618e1e78b397c/.clang-format.yml ``` 5. In Xcode select menu `Edit` -> `Clang Format` -> `File` to use rules from downloaded .clang-format file 6. Use menu items `Edit` -> `Clang Format` -> `Format *` to format code 7. (_Optional_) If you are a lazy ass, you can select `Edit` -> `Clang Format` -> `Enable Format on Save`, thus code will be formatted right before saving to a file -
dev4dev revised this gist
Feb 24, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,4 +7,4 @@ 4. Download [.clang-format.yml](https://gist.github.com/dev4dev/78d0508304558e969b2a/raw/9bab5aefe2e29f4b7b6a5560642618e1e78b397c/.clang-format.yml) to your home directory 5. In Xcode select menu `Edit` -> `Clang Format` -> `File` to use rules from downloaded .clang-format.ylm file 6. Use menu items `Edit` -> `Clang Format` -> `Format *` to format code 7. (_Optional_) If you are a lazy ass, you can select `Edit` -> `Clang Format` -> `Enable Format on Save`, thus code will be formatted right before saving to a file -
dev4dev revised this gist
Feb 24, 2016 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,7 @@ 2. Install ClangFormat Plugin  3. Restart Xcode 4. Download [.clang-format.yml](https://gist.github.com/dev4dev/78d0508304558e969b2a/raw/9bab5aefe2e29f4b7b6a5560642618e1e78b397c/.clang-format.yml) to your home directory 5. In Xcode select menu `Edit` -> `Clang Format` -> `File` to use rules from downloaded .clang-format.ylm file 6. Use menu items `Edit` -> `Clang Format` -> `Format *` to format code 7. (_Optional_) If you are lazy ass, you can select `Edit` -> `Clang Format` -> `Enable Format on Save`, thus code will be formatted right before saving to a file -
dev4dev created this gist
Feb 24, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ ### Clang Formatter 1. Install [Alcatraz](http://alcatraz.io/) 2. Install ClangFormat Plugin  3. Restart Xcode 4. Download [.clang-format.yml](https://gist.github.com/dev4dev/78d0508304558e969b2a/raw/9bab5aefe2e29f4b7b6a5560642618e1e78b397c/.clang-format.yml) to your home directory. 5. In Xcode select menu `Edit` -> `Clang Format` -> `File` to use rules from downloaded .clang-format.ylm file. 6. Use menu items `Edit` -> `Clang Format` -> `Format *` to format code 7. (_Optional_) If you are lazy ass, you can select `Edit` -> `Clang Format` -> `Enable Format on Save`, thus code will be formatted right before saving to a file.