【发布时间】:2018-06-05 03:49:57
【问题描述】:
【问题讨论】:
标签: visual-studio-code vscode-settings
【问题讨论】:
标签: visual-studio-code vscode-settings
VSCode v.1.23(2018 年 5 月发布)添加了为活动和其他非活动缩进指南着色的功能:
"workbench.colorCustomizations": {
"editorIndentGuide.activeBackground": "#ff0000",
"editorIndentGuide.background": "#ff00ff"
}
如果您只希望活动指南可见,请将非活动指南的背景设置为透明 ala:
"workbench.colorCustomizations": {
"editorIndentGuide.background": "#fff0"
}
【讨论】:
workbench.colorCustomizations 对象内。
workbench.colorCustomizations 设置的人,请转到 VSCode -> 首选项 -> 设置,在搜索中键入“颜色自定义”,然后单击“在 settings.json 中编辑”弹出
那些是缩进指南。它们的颜色可以在你的 settings.json 中修改:
"workbench.colorCustomizations": {
"editorIndentGuide.background": "#ff0000"
}
【讨论】:
你可以用这个, 我相信这就是你想要的
参考:https://code.visualstudio.com/updates/v1_23#_highlighted-indent-guides
"workbench.colorCustomizations":{
"editorIndentGuide.activeBackground":"#ff0000"
}
【讨论】:
我从 Visual Studio Marketplace 安装了 Indent Guides 扩展。在 VS 2019 工作。
【讨论】: