我正在使用 indent-rainbow 扩展,我想改变图片中的外观
我需要制作多色线条
我发现类似的问题 https://github.com/oderwat/vscode-indent-rainbow/issues/153
答案有一个链接:https://github.com/oderwat/vscode-indent-rainbow#light-mode-new-since-v830
或链接中的文字:
灯光模式(自 v8.3.0 以来新增) 有一种(新的)替代模式,它使用线条(具有可定制的宽度)而不是空白的背景颜色。这是我喜欢的示例配置:
// Using the light mode
"indentRainbow.indicatorStyle": "light",
// we use a simple 1 pixel wide line
"indentRainbow.lightIndicatorStyleLineWidth": 1,
// the same colors as above but more visible
"indentRainbow.colors": [
"rgba(255,255,64,0.3)",
"rgba(127,255,127,0.3)",
"rgba(255,127,255,0.3)",
"rgba(79,236,236,0.3)"]
对于这一补充,非常感谢 Christian Hoock wk1。他还添加了配置更改时重新加载编辑器窗口。
没有必要在某个地方进入插件代码。转到例外>彩虹>单击齿轮(例外设置)>并在缩进彩虹:指示器样式中,将“经典”替换为“轻”