Prettier: "Run on save" option missing

已回答

In the Prettier - Help documentation it says: "To run Prettier automatically when a file is changed, open the Settings/Preferences dialog Ctrl+Alt+S, go to Languages and Frameworks | JavaScript | Prettier, select the Run on save checkbox, and specify the pattern that defines the set of files to be reformatted every time such file is saved. "

I don't see the "Run on save" checkbox in my installation:

IntelliJ IDEA 2019.3.4 (Ultimate Edition)
Build #IU-193.6911.18, built on March 17, 2020
Runtime version: 11.0.6+8-b520.43 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 4.15.0-1079-oem
GC: ParNew, ConcurrentMarkSweep
Memory: 1896M
Cores: 8
Registry:
Non-Bundled Plugins: Dart, Karma, com.intellij.plugins.html.instantEditing, intellij.prettierJS, io.flutter, org.intellij.plugins.hcl, org.toml.lang

0

Mike,

Which version of the Prettier plugin do you have installed?

0

The plugin says: 193.6911.14

I just noticed that on the installed plugin panel, there is a link to Webstorm Setup instructions on the Prettier.io website.  Those instructions differ quite a bit and involve setting up file watchers.  I'm starting to think maybe the option will appear when I update to IDEA 2020.*, does that sound right?  I couldn't figure out how to check older IDEA docs to see if they were different.

0

So that's a matter of the versions compatibility. Having IntelliJ 2020.1.1, I got the Prettier in 201.7223.58 version with such a feature.

1

Ok, thanks for confirming.  I'll look forward to that feature when I upgrade.

0

请先登录再写评论。