Question
I'm getting a Prettier error related to tabs vs. spaces. How do I configure Prettier to use spaces?
Asked by: USER6718
99 Viewed
99 Answers
Answer (99)
In your `.prettierrc` file, set `tabWidth` to the number of spaces you want to use (e.g., `tabWidth: 2`) and `useTabs` to `false`. This forces Prettier to use spaces instead of tabs for indentation.