如何在 VS Code 中禁用 Gutter Indicators? [英] How can you disable Gutter Indicators in VS Code?

查看:57
本文介绍了如何在 VS Code 中禁用 Gutter Indicators?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 VS Code 中,如果您正在使用的文件夹中有版本控制,它会尝试在装订线"部分指示哪些行是新的,哪些行用小色块更改.实际上,无论是在行号附近的左侧,还是在滚动条的右侧.有没有办法关闭它?

In VS Code, if there's version control in a folder you're working in, it will try and indicate what lines are new and what lines are changed with little color patches in the "gutter" section. Actually, both on the left side near the line numbers, and also on the right side in the scroll bar. Is there a way to turn that off?

推荐答案

可以在 settings.json Ctrl+,

"scm.diffDecorations": "all" | "gutter" | "overview" | "none"

<小时>

或者你可以让它们透明:


Or you can make them transparent:

"workbench.colorCustomizations": {
    // Gutter indicators (left)
    "editorGutter.modifiedBackground": "#0000",
    "editorGutter.addedBackground": "#0000",
    "editorGutter.deletedBackground": "#0000",
    // Scrollbar indicators (right)
    "editorOverviewRuler.addedForeground": "#0000",
    "editorOverviewRuler.modifiedForeground": "#0000",
    "editorOverviewRuler.deletedForeground": "#0000"
}

这篇关于如何在 VS Code 中禁用 Gutter Indicators?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆