From c502bb91a25ceab5b27359ca83afccfc559385fb Mon Sep 17 00:00:00 2001 From: soham Date: Fri, 12 Jun 2020 02:26:26 +0530 Subject: [PATCH] add a note in vscode section (#290) * add a note in vscode section This node is regarding a fix introduced in prettier-vscode 3.8.0 around Nov 2019 causing vscode settings to be ignored. * concise the overrides part --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 005ca1495..30d2c1b66 100644 --- a/README.md +++ b/README.md @@ -116,6 +116,10 @@ You'll notice now that `prettier` is formatting every time the files are saved b } ``` +Note: When you install the npm package `prettier` in your project and create a `.prettierrc` file (which wasn't in your project before this), your VSCode's default settings or rules in `settings.json` are ignored ([prettier/prettier-vscode#1079](https://github.com/prettier/prettier-vscode/issues/1079)). + +If you want a different configuration for your javascript and solidity files, you can add an [overrides property](https://prettier.io/docs/en/configuration.html#configuration-overrides) to your `.prettierrc`. + ## Contributing 1. [Fork it](https://github.com/prettier-solidity/prettier-plugin-solidity/fork)