vscode-indent-rainbow icon indicating copy to clipboard operation
vscode-indent-rainbow copied to clipboard

`indentRainbow.ignoreLinePatterns` example for settings.json and comment mismatch.

Open joshinils opened this issue 7 months ago • 2 comments

  // 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. 🤷‍♂️ )

joshinils avatar Aug 05 '25 02:08 joshinils

"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.

oderwat avatar Aug 05 '25 02:08 oderwat

Try This One

    "indentRainbow.ignoreLinePatterns": [
        "^\\s*\\*",
        "^\\s*//"
    ]

MTsocute avatar Nov 25 '25 23:11 MTsocute