Use prettier in webstorm

Vue-cli used here create a project that contains a prettier, eslint, I chose to do checks when the file is saved, and normally it should be saved by the automatic formatting, but did not

Configured as follows

`file->settings->Tools->File Watchers->+->Prettier`

 

 Save the configuration on the trip back to write something and then save is automatically formatted

Guess you like

Origin www.cnblogs.com/tc6666/p/11184681.html