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

No language settings registered as overrides ["indentRainbow.ignoreLinePatterns"]

Open miaLDN opened this issue 2 years ago • 0 comments

The ignoreLinePatterns is a useful option, but how to limit it to specific languages? I'm seeing some falsely flagged indentation in YAML files (red color), and was investigating if it was the ASCII art comments (or something else in the YAML plain text inline literals) that was breaking it.

indentrainbow1 indentrainbow2

settings.json:

{
    "[yaml]": {
        "indentRainbow.ignoreLinePatterns" : [
            "/[ \t]+[#]/g" // Comments
        ]
    }
}

miaLDN avatar Oct 06 '24 05:10 miaLDN