Replies: 1 comment 2 replies
-
Are you using Prettier plugin for VSCode? AFAK, we don't need to install cosmiconfig though Prettier uses it internally. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Here's the corrected version:
My goal is to set up Prettier to use tabs for indentation instead of spaces for JSON files using Configuration File.
So far, I have done the following, but when formatting JSON files in VS Code with Prettier, indentation is still done using spaces instead of tabs:
Install Node.js:
Install cosmiconfig for configuration file support:
Add a
.prettierrc.yaml
file within the project's file tree with this content:trailingComma: 'es5'
tabWidth: 4
indent_style: 'tab'
semi: false
singleQuote: true
insert_final_newline: false
Any advice would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions