代码之家  ›  专栏  ›  技术社区  ›  RooksStrife

如何更改VS代码中的块关系线颜色

  •  3
  • RooksStrife  · 技术社区  · 7 年前

    Bracket Pair Colorizer

    enter image description here

    1 回复  |  直到 6 年前
        1
  •  5
  •   Alex Myers    7 年前

    您可以通过更新 bracketPairColorizer.consecutivePairColors 设置。

    将以下内容添加到配置中以支持HTML,如下所示。

    • ["<", "</"]
    • ["<", "/>"]

    "bracketPairColorizer.consecutivePairColors": [
        "()",
        "[]",
        "{}",
        ["<", "</"],
        ["<", "/>"],
        [
            "Gold",
            "Orchid",
            "LightSkyBlue"
        ],
        "Red"
    ],
    

    结果:

    enter image description here