indent-rainbow extension for vs code highlights red the code with 2 spaces

Viewed 872

I have prettier code formatter installed, which makes 2 spaces as a standard indentation for the code. However, indent-rainbow highlights it as a red, so it thinks that default indentaion is 4 spaces. What do I do? here is the image

1 Answers

If you installed indent-rainbow, you could remove errors color by adding these to settings.json and reload vscode.

"indentRainbow.ignoreErrorLanguages": ["*"],
"indentRainbow.colorOnWhiteSpaceOnly": true,

Hope this help.

Related