Skip to content

prettier doesn't work. #5645

Answered by aaankeet
Dear-MrHe asked this question in Q&A
Jun 10, 2023 · 2 comments · 7 replies
Discussion options

You must be logged in to vote

@Dear-MrHe

Try these steps

  1. Install Prettier Globally via npm if you have never installed it globally
    npm i prettier -g

  2. Search & Use the Prettier Path Extension Settings in your VS Code Settings
    You can navigate to VS Code Settings > Extensions > Prettier

  1. Update the Prettier Path to your globally installed Prettier. The path will be usr/local/lib/node_modules/prettier for MAC OS and Linux. For Windows, the path will be \AppData\Roaming\npm\node_modules\prettier

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
1 reply
@Dear-MrHe
Comment options

Comment options

You must be logged in to vote
6 replies
@Dear-MrHe
Comment options

@Dear-MrHe
Comment options

@aaankeet
Comment options

Answer selected by Dear-MrHe
@Dear-MrHe
Comment options

@aaankeet
Comment options

@Dear-MrHe
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants