Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
473 views
in Technique[技术] by (71.8m points)

visual studio code - Prettier not working on my vscode.I've installed it on my vscode and do all the important settings

I've installed prettier on my vscode and do all the settings for that. But it is still not working. Settings I've applied: default formatter prettier, format on save. But it still not working. Please help me.!!

question from:https://stackoverflow.com/questions/65938220/prettier-not-working-on-my-vscode-ive-installed-it-on-my-vscode-and-do-all-the

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I can't comment yet so here's my best try at an answer:

Prettier mainly supports these languages according to their page: JavaScript · TypeScript · Flow · JSX · JSON CSS · SCSS · Less HTML · Vue · Angular GraphQL · Markdown · YAML Make sure you're formatting one of those languages for best results.

If Editor: Format On Save Mode is set to modifications then you may not be able to go to an existing file and instantly format all of it.

If none of that helps I'm stumped and recommend looking at Why Prettier does not format code in VSCODE? if you haven't already


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...