X Tutup
Skip to content

Commit 900bf8e

Browse files
alexeaglemhevery
authored andcommitted
Update DEVELOPER.md
Closes angular#1755
1 parent 271ced8 commit 900bf8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DEVELOPER.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,10 @@ Note that the continuous build on Travis runs `gulp enforce-format`. Unlike the
208208
Your life will be easier if you include the formatter in your standard workflow. Otherwise, you'll likely forget to check the formatting, and waste time waiting for a build on Travis that fails due to some whitespace difference.
209209

210210
* **git pre-commit hook** is available at [llvm.org](https://llvm.org/svn/llvm-project/cfe/trunk/tools/clang-format/git-clang-format). This will automatically format your delta regions when you commit a change. To install, first patch this file to add `.ts` to the `default_extensions` section. Then copy the file somewhere in your path, for example, `/usr/local/git/current/bin/git-clang-format`. Make sure it is executable. Then, in the angular repo, run
211-
211+
```
212212
$ echo -e '#!/bin/sh\nexec git clang-format' > .git/hooks/pre-commit
213213
$ chmod u+x !$
214-
214+
```
215215
* **WebStorm** can run clang-format on the current file.
216216
1. Under Preferences, open Tools > External Tools.
217217
1. Plus icon to Create Tool

0 commit comments

Comments
 (0)
X Tutup