Prettier-vscode: Require config set to true and no config present. Skipping file.

Created on 27 Feb 2020  Â·  6Comments  Â·  Source: prettier/prettier-vscode

Prettier is not working as expected.
made sure that format on save is on and went into settings.json to make sure it was the default editor but it still isn't working
I have included my settings.json file code as well as the message I am getting output portion after trying to save. Please Advise :-)

these are the settings I have in settings.json
{
"prettier.requireConfig": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.fontSize": 16,
"editor.tabSize": 2,
"prettier.useEditorConfig": false,
"prettier.printWidth": 80,
"workbench.iconTheme": "material-icon-theme",
"editor.formatOnSave": true
}

but I am still getting the message that i put in the title and it doesn't work nothings changes when I save my files. thanks for your help in advance

VS Code Version: 1.42.1

Prettier Extension Version: 3.20.0

OS and version: Mac version 10.15.1

locked

Most helpful comment

Go to extension settings and find this one. Uncheck the box. Should help
prettier

All 6 comments

Go to extension settings and find this one. Uncheck the box. Should help
prettier

Do you have a .prettierrc (or other prettier config) file in the root of your project?

I didn't
It seems to be working now.
2 question though
1) what would I put in this prettierrc file
2) would I have to have that in every project because that would be pretty
frustrating instead of being a global setting

On Wed, Mar 4, 2020 at 5:22 PM Nathan Totten notifications@github.com
wrote:

Do you have a .prettierrc file I. The root of your project?

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/prettier/prettier-vscode/issues/1257?email_source=notifications&email_token=ABZHUXRGLM3C6EKBLK5ORUDRF3PERA5CNFSM4K5DBTV2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEN257UI#issuecomment-594927569,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABZHUXQIQERJNTWCJ7DHMK3RF3PERANCNFSM4K5DBTVQ
.

--

Thanks,
Nick Birmingham
Owner
C2 Creative Concepts
Texarkana ,TX 75503
(903) 949-9657

website: www.c2creativeconcepts.com

Please ask support requests on stackoverflow or see the docs for more info.

Go to extension settings and find this one. Uncheck the box. Should help
prettier

Finally I got it working! Thanks a bunch!

Go to extension settings and find this one. Uncheck the box. Should help
prettier

It working but the prettier not formating the line indentations in the file.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SkeLLLa picture SkeLLLa  Â·  4Comments

vesper8 picture vesper8  Â·  3Comments

Tanmccuin picture Tanmccuin  Â·  3Comments

bardware picture bardware  Â·  4Comments

FlorianWendelborn picture FlorianWendelborn  Â·  3Comments