You need to enable JavaScript to run this app.
最新活动
大模型
产品
解决方案
定价
生态与合作
支持与服务
开发者
了解我们

如何关闭Visual Studio Code行号旁的Git变更标记?

How to Turn Off VS Code's Git Gutter Change Indicators

Hey there! That colored bar next to your line numbers showing Git additions, deletions, and modifications is called the Git gutter (or Git change indicators in the editor gutter). Here's how you can disable it completely:

  • Open VS Code's Settings panel:
    • Use the keyboard shortcut Ctrl+, (Windows/Linux) or Cmd+, (Mac)
    • Or click the gear icon in the bottom-left corner and select "Settings"
  • In the search bar at the top of the Settings panel, type scm.diffDecorations
  • Look for the "SCM: Diff Decorations" option. Click the dropdown menu next to it and select none

That’s it! The colored markers next to your line numbers will disappear right away. If you ever want to bring them back later, just repeat these steps and switch the setting back to all or gutter.

内容的提问来源于stack exchange,提问作者Jake

火山引擎 最新活动