My project has a prettier.config.js
. My colleagues and I use prettier, and format documents on save.
On my machine, but not my colleague's machines, saving files changes the indentation for multiline code (function arguments, objects, etc). See below.
On my colleagues machines it doesn't - if I give them I file I have saved with prettier, it will change the multiline formatting back.
I have deleted and reinstalled the prettier (esbenp.prettier-vscode
) extension and this has not solved the problem.
What is this setting called? I have looked in the prettier docs regarding multiline statements.
Why is prettier using a different setting from
prettier.config.js
?
Here is a diff, when I saved (and ran prettier) over some vcode that my colleagues have already ran prettier over: