How to use custorm prettier extension at vscode?

github logo ・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

twitter logo DISCUSS
Classic DEV Post from Aug 16 '19

Powerlifting has made me a better developer. (Part 1: Interpersonally)

Zuhair Taha profile image
JavaScript developer