How to use custorm prettier extension at vscode?

zuhairtaha profile image Zuhair Taha ・1 min read

I want to use the prettier extension at vscode. But I want to use this one
instead of the original one.
Is there any settings at .prettierrc file or and vscode settings to do to make it use it to format the code?

👌 What I tried to do to format current opened file and save all files, is to add macros extension, then to add next lines at settings.json:

  "macros": {
    "prettierAndSaveAll": [
        "command": "workbench.action.terminal.sendSequence",
        "args": {
          "text": "./node_modules/.bin/prettier --write '${file}'\u000D"

But I have to keep terminal open to make it works, and I feel that it is slow 🙄.
So I'm not happy with this way and looking for better


Editor guide