- Select
File -> Preferences -> Settings(Ctrl+comma) and search formformatter - Set Prettiers as Default formatter.

If above does not work:
ctrl+shift+p > Format Document With... > Configure Default Formatter... > Prettier - Code formatter
This also work with ctrl+shift+I
- Select
File -> Preferences -> Settings(Ctrl+comma) and search formformatter - Set Prettiers as Default formatter.

If above does not work:
ctrl+shift+p > Format Document With... > Configure Default Formatter... > Prettier - Code formatter
This also work with ctrl+shift+I
If doing what @Simin Maleki mentioned does not solve it for you, there is a chance that your default formatter is not set:
File > Preferences > Settings > Search for "default formatter"
Make sure your Editor: Default Formatter field is not null but rather Prettier - Code formatter (esbenp.prettier-vscode) and that all the languages below are ticked. This fixed my issue.
STEP BY STEP WALKTHROUGH

Also make sure that your format on save is enabled:

I have done all kinds of things but my prettier does not format on save.
Changes to prettier.config.js don't take effect until restarting vscode when using prettier v3
Neovim not formatting code correctly like VSCode does (prettier)
I deleted my settings.json file because the Prettier extension was not working.
Videos
I'm new to Vim/NeoVim in general, and just started using LazyVim which I'm really liking so far.
I was trying to use Neovim on some projects at work however one big blocker I'm having at the moment is that Neovim and VSCode format code differently.
VSCode formats it correctly, using the prettier config, but Neovim seems to format things in its own way entirely, not respecting the project config.
I've tried a few things to try and get this to work, but is there some setting or config I'm missing? I've installed prettier via Mason if that helps.
Thanks for any help!
Yup, I feel dumb!
How do I get a restored version of VS Code? Every time I try to uninstall and reinstall I get the same ol vs code.