VS code显示缩进竖线

请教:在VS code中,如何让所有同级缩进都显示匹配的线条?

如图,目前只有在光标定位的时候才显示线条,如何让所有的缩进同时显示线条呢?

img

扩展插件里安装 indent-rainbow

补充:Vs code 版本为1.79.2

在 VS Code 中,你可以通过打开设置(Settings),搜索 "editor.drawIndentGuides",并将其设置为 true 来显示同级缩进的线条。

如果你只想在某些情况下显示这些线条,你可以打开文件(File) > 首选项(Preferences) > 设置(Settings),搜索 "editor.drawIndentGuides",并将其设置为 "['on']"。