Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Change Gutter Base

The editor’s change gutter marks lines that differ from a base. By default the base is the last commit; you can choose another.

Git → Change Gutter Base… (also in the command palette, action git.gutter_base) opens a list of head, index, disk and one branch:<name> row per local branch, with the current base preselected. The choice applies for the session; to make it permanent set git_gutter_base in your settings file.

ValueCompares againstUse
head (default)the last commiteverything not yet committed
indexthe staged versionstaged hunks stop being marked
diskthe file as savedexactly the unsaved edits
branch:<name>the tip of that brancha feature’s or agent’s whole change as you scroll

An unrecognized value, or branch: with no name, means head. A file that is absent from the base (new, or not on that branch) compares against empty, so every line shows as added. Changing the base recomputes the marks at once.

Stage Hunk, Unstage Hunk and hunk navigation always work against HEAD and the index, whatever the gutter base is. While the coverage gutter is visible it takes the gutter column instead.

See the specification at crates/vix-git/spec/git-integration/index.md (section “Gutter base”).


Vix™ and Vix IDE™ are trademarks.