Update instructions for File Watcher in WebStorm (#3424)

Re-use the instructions for setting the File Watcher program path in WebStorm when prettier is installed locally.
master
Alf Eaton 2017-12-06 15:35:56 +00:00 committed by Lucas Duailibe
parent a9502f0ab7
commit 67ec3b2f05
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ Go to _File | Settings | Tools | File Watchers_ for Windows and Linux or _WebSto
* **File Type**: JavaScript
* **Scope**: Current File
* **Program** set the full path to a `prettier` executable, such as `/Users/developer/repo/jest/node_modules/.bin/prettier` (on OS X and Linux) or `C:/\Users\developer\repo\jest\node_modules\.bin\prettier.cmd` (on Windows).
* **Program** set `prettier` (if you have `prettier` installed locally, see ["Configure External Tool"](#configure-external-tool) above)
* **Arguments** set `--write [other opts] $FilePath$`
* **Working directory** set `$ProjectFileDir$`
* **Immediate file synchronization**: Uncheck to reformat on Save only (otherwise code will jump around while you type).