Git Line Tint
See what is staged and what is not, line by line, without leaving the editor.

The tint follows the editor as you type, including unsaved edits. A staged line
that you edit again turns orange. Untracked files are left alone.
Colour-blind friendly: staged and unstaged differ by colour, brightness and
line style (solid or dotted), never by hue alone. Dark, light and high-contrast
themes each have their own colours.
Semantic Map (experimental)
An outline of the file in the right-hand side bar, off by default. Run
Git Line Tint: Show Semantic Map to turn it on and open it.

It names the types, functions and methods, colours each by kind, and makes
nested blocks darker with each level. Staged and unstaged lines are marked as in
the editor. Click or drag to scroll.
It works with any language, and is checked on TypeScript, Rust, C, C++ and
Python. VS Code does not let an extension replace the built-in minimap; set
"editor.minimap.enabled": false if you want only this one.
Settings
Every setting, with its default:
{
// Tint lines that have staged or unstaged changes. Also the command "Git Line Tint: Toggle".
"gitLineTint.enabled": true,
// Draw a thin rule where lines were deleted: solid if staged, dotted if not.
"gitLineTint.showDeletions": true,
// Staged lines: tinted, with a solid bar at the left. #RRGGBB or #RRGGBBAA; empty = the theme's blue.
"gitLineTint.stagedColor": "",
// Unstaged lines: tinted, with a dotted bar at the left. #RRGGBB or #RRGGBBAA; empty = the theme's orange.
"gitLineTint.unstagedColor": "",
// Experimental. Show the Semantic Map: an outline of the file in the right-hand side bar. Also the command "Git Line Tint: Show Semantic Map".
"gitLineTint.semanticMap": false,
// Map: colour of each top-level declaration, by kind, as #RRGGBB. Blue and orange are best left to the git marks.
"gitLineTint.map.colors": {
"class": "#F0E442",
"struct": "#F0E442",
"interface": "#009E73",
"enum": "#009E73",
"function": "#E05AA8",
"other": "#DCDCDC"
},
// Map: how bright a nested block is compared with the block around it. 1 = no darkening.
"gitLineTint.map.depthShade": 0.78,
// Map: how many levels of names to show (types, then their methods, ...). 0 = no names.
"gitLineTint.map.labelLevels": 10
}
For different tint colours per theme, set gitLineTint.stagedBackground,
gitLineTint.stagedBorder, gitLineTint.unstagedBackground and
gitLineTint.unstagedBorder under workbench.colorCustomizations.
Limits
- Files over 50,000 lines are not tinted.
- Changes made outside VS Code, such as
git add in a separate terminal, show
up when the VS Code window next has focus.
- Not available in untrusted or virtual workspaces.