From 900bf8e483ff278c71782fe6aac6b1383640cd35 Mon Sep 17 00:00:00 2001 From: Alex Eagle Date: Thu, 7 May 2015 16:49:59 -0700 Subject: [PATCH] Update DEVELOPER.md Closes #1755 --- DEVELOPER.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DEVELOPER.md b/DEVELOPER.md index 5848b4059b..8c79a08391 100644 --- a/DEVELOPER.md +++ b/DEVELOPER.md @@ -208,10 +208,10 @@ Note that the continuous build on Travis runs `gulp enforce-format`. Unlike the 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. * **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 - +``` $ echo -e '#!/bin/sh\nexec git clang-format' > .git/hooks/pre-commit $ chmod u+x !$ - +``` * **WebStorm** can run clang-format on the current file. 1. Under Preferences, open Tools > External Tools. 1. Plus icon to Create Tool