如何关闭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) orCmd+,(Mac) - Or click the gear icon in the bottom-left corner and select "Settings"
- Use the keyboard shortcut
- 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




