Anyone I know using @WebStormIDE or @phpstorm been able to get a File Watcher for prettier setup to reformat your JS files when saving AND have it refresh the open file view with the contents from disk?
It does refresh if run via the npm scripts panel, though.
-
-
I don't quite follow the part about "refresh open file", but If it helps at all here's my Prettier WebStorm File Watcher config and it's been working quite well for me
Similar set up working in PHPStormpic.twitter.com/ciz8tp879F
2 replies 0 retweets 1 like -
So, if I have a file open for editing in a tab, and I edit it and save it, the file watcher runs prettier, but I then I have to refresh the file to load it from disk and display the changes prettier made.
1 reply 0 retweets 0 likes
Filling in the "Output paths to refresh" field should do the trick. We'd recommend using the standard Prettier file watcher template.pic.twitter.com/HfcWZYkw9F
4:48 AM - 6 May 2019
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.