diff --git a/README.md b/README.md index 59c355fd6..1f18f3876 100644 --- a/README.md +++ b/README.md @@ -175,23 +175,16 @@ The official [prettier plugin for atom](https://github.com/prettier/prettier-ato ### VScode -Regarding plugin support in the official plugin prettier-vscode see [this issue](https://github.com/prettier/prettier-vscode/issues/395). +The official plugin `prettier-vscode` doesn't support plugins out of the box yet, see [this issue](https://github.com/prettier/prettier-vscode/issues/395). You can use the following workaround to enable PHP support anyway: -Alternatively, install [Run on Save](https://marketplace.visualstudio.com/items?itemName=emeraldwalk.RunOnSave) and add the following section to your settings: - -```json -{ - "emeraldwalk.runonsave": { - "commands": [ - { - "match": "\\.php$", - "cmd": "prettier ${file} --write" - } - ] - } -} +```bash +cd ~/.vscode/extensions/esbenp.prettier-vscode-1.8.1/ +npm install @prettier/plugin-php ``` +After restarting VScode the plugin should work as expected. + + ### Vim Regarding plugin support in the official plugin vim-prettier see [this issue](https://github.com/prettier/vim-prettier/issues/119).