vscode-indent-rainbow
vscode-indent-rainbow copied to clipboard
`indentRainbow.ignoreLinePatterns` example for settings.json and comment mismatch.
// Example of regular expression in JSON (note double backslash to escape characters)
"indentRainbow.ignoreLinePatterns" : [
"/[ \t]* [*]/g", // lines begining with <whitespace><space>*
"/[ \t]+[/]{2}/g" // lines begininning with <whitespace>//
]
\t is a tab.
\\s is whitespace (equivalent to [\\r\\n\\t\\f\\v ]).
I think including an example with an escaped backslash would be good too, ref #189.
(Technically, comments aren't a thing in JSON, but VS Code ignores this, too. 🤷♂️ )
"Error" display is considered a design error by me. I will not change anything about it. I would remove it if there were not over 2 million installations with it.
Try This One
"indentRainbow.ignoreLinePatterns": [
"^\\s*\\*",
"^\\s*//"
]