From 68df2027a74d0edcf94a32a82a9d4d5abf2d2adb Mon Sep 17 00:00:00 2001 From: Simon H <5968653+dummdidumm@users.noreply.github.com> Date: Thu, 10 Sep 2020 17:05:32 +0200 Subject: [PATCH] (doc) code formatting 2nd option: install prettier-plugin-svelte --- docs/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/README.md b/docs/README.md index 3c35580da..b1382db92 100644 --- a/docs/README.md +++ b/docs/README.md @@ -90,7 +90,9 @@ If you have the `Babel Javascript` plugin installed, this may be the cause. Disa #### My Code does not get formatted -Your default formatter for Svelte files may be wrong. Either it's set to the old Svelte extension, or you set all files to be formatted by the prettier extension. To fix this, you need to explicitly tell VSCode to format the code with the `Svelte for VSCode extension`: +Your default formatter for Svelte files may be wrong. +- Mabye it's set to the old Svelte extension, if so, remove the setting +- Maybe you set all files to be formatted by the prettier extension. Then you have two options: Either install `prettier-plugin-svelte` from npm, or tell VSCode to format the code with the `Svelte for VSCode extension`: ```json "[svelte]": {