![]() Go to Preferences | Tools | File Watchers and click + to add a new watcher. To automatically format your files using Prettier on save in WebStorm 2019.* or earlier, you can use a File Watcher. Running Prettier on save using File Watcher To run Prettier on save in older IDE versions, you can set up a file watcher following the instructions below. To use Prettier in IntelliJ IDEA, PhpStorm, P圜harm, and other JetBrains IDEs, please install this plugin. You can further configure what files will be updated using the glob pattern. To run Prettier on save in WebStorm 2020.1 or above, open Preferences | Languages & Frameworks | JavaScript | Prettier and enable the option Run on save for files.īy default, only JavaScript and TypeScript files will be formatted automatically. ![]() Use the Reformat with Prettier action ( Opt-Shift-Cmd-P on macOS or Alt-Shift-Ctrl-P on Windows and Linux) to format the selected code, a file, or a whole directory.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |