-
-
Notifications
You must be signed in to change notification settings - Fork 448
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
indent size is 2 instead of 4 - Failed to resolve config - No local configuration detected #1082
Comments
Is your This extension uses prettier to resolve configuration files which is: "The configuration file will be resolved starting from the location of the file being formatted, and searching up the file tree until a config file is (or isn't) found." It sounds like your configuration files are not in the same tree as the file being formatted so they wouldnt be discovered. |
@ntotten my .prettierrc is located at the root folder But I still get that error To be sure that EditorConfig is not causing any conflicts. I removed .editorconfig from my root folder but It still doesn't work. EDIT 1: EDIT 2: EDIT 3: |
Seeing the same problem as @wassim-azirar VS Code
Prettier Extension 3.9.0 |
I think I have somewhat figured out what is going on here. It appears to be a text encoding issue with the The immediate fix is to change the encoding of the |
Closing as this issue seems to be resolved. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
My .prettierrc file is not used to format my files.
Expected result
I expect the file to be formatted with 4 spaces
Actual result
The file gets formatted with 2 spaces
Screenshot
VS Code Version: 1.40.1
Prettier & Prettier Plugin Version:
"prettier": "^1.19.1"
"prettier plugin": [3.8.0]
OS and version:
Windows 10 Pro
.editorconfig
.prettierrc
.prettierignore
I tried to delete the .prettierignore file, but I keep seeing this log :
Resolved ignore file to c:\repos\project\.prettierignore
I restared VSCode many times, and everytime I use the format commande I see this message. 😠
settings.json
Prettier Log Output
The text was updated successfully, but these errors were encountered: