Skip to content

Instantly share code, notes, and snippets.

@dev4dev
Last active March 4, 2016 11:10
Show Gist options
  • Select an option

  • Save dev4dev/9b05eb36ec37f9eb5f50 to your computer and use it in GitHub Desktop.

Select an option

Save dev4dev/9b05eb36ec37f9eb5f50 to your computer and use it in GitHub Desktop.

Revisions

  1. dev4dev revised this gist Mar 4, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion instruction.md
    Original 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
  2. dev4dev revised this gist Mar 4, 2016. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions instruction.md
    Original file line number Diff line number Diff line change
    @@ -5,9 +5,9 @@
    ![ClangFormat](http://f.dev.mk.ua/files/136e708fcb0edf42490a5de84444df43/file_56cd68238ee17.png)
    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
    ```
    ``` 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
  3. dev4dev revised this gist Mar 4, 2016. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion instruction.md
    Original file line number Diff line number Diff line change
    @@ -5,6 +5,9 @@
    ![ClangFormat](http://f.dev.mk.ua/files/136e708fcb0edf42490a5de84444df43/file_56cd68238ee17.png)
    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
    ``` 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
  4. dev4dev revised this gist Feb 24, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion instruction.md
    Original 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 lazy ass, you can select `Edit` -> `Clang Format` -> `Enable Format on Save`, thus code will be formatted right before saving to a file
    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
  5. dev4dev revised this gist Feb 24, 2016. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions instruction.md
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,7 @@
    2. Install ClangFormat Plugin
    ![ClangFormat](http://f.dev.mk.ua/files/136e708fcb0edf42490a5de84444df43/file_56cd68238ee17.png)
    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.
    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.
    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
  6. dev4dev created this gist Feb 24, 2016.
    10 changes: 10 additions & 0 deletions instruction.md
    Original 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
    ![ClangFormat](http://f.dev.mk.ua/files/136e708fcb0edf42490a5de84444df43/file_56cd68238ee17.png)
    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.