GutteredGuttered shows your branch's changes since its merge base with the repository's default branch, directly in the normal VS Code editor. Committed changes stay visible alongside staged, unstaged, and unsaved edits. New and untracked files that Git isn't ignoring are included.
Committed branch changes and an unsaved edit, with markers in the default glyph margin and the changed-files tree in Source Control. View the light theme. Compare from where your branches divergedA merge base is a common ancestor that Git selects for your branch and the comparison reference. Guttered detects the repository's default branch automatically and uses its merge base with
In this example, the default branch is Committing your work keeps its branch markers visible. If VS Code's native Git markers show local changes relative to InstallYou need desktop VS Code, Git 2.30 or newer, and a trusted workspace. Guttered uses the Git executable found by VS Code's built-in Git extension. If that extension is disabled, it tries The extension supports VS Code 1.95 and newer. Install Guttered from the Visual Studio Marketplace, or search for If you installed an earlier GitHub VSIX, uninstall that copy before installing the Marketplace version. The publisher ID changed from To build the extension from this repository, use Node.js 22 or newer:
Use GutteredAdded lines have soft green bars, modified lines have soft yellow bars, and deleted lines have soft red triangles on the neighboring line. Markers use 30% opacity by default, keeping native Git indicators more prominent on both dark and light themes. Markers sit in the glyph margin alongside breakpoints, so the text starts at its usual position. The overview ruler also shows the changes; text backgrounds stay unchanged. Right-click the line number or glyph margin of a marked line for Guttered's actions at that line.
Open the merge-base diff or restore the clicked change from the same menu as VS Code's breakpoint actions. The glyph margin has trade-offs set by VS Code:
To keep breakpoint clicks free and preview changes on hover, set Guttered: Gutter Placement ( The status bar shows the selected reference, such as Hover over the code on a changed line to reveal a compact Open change diff link alongside any language documentation. One click opens the selected diff view at that change, including unsaved edits. The action works with either marker placement and adds no permanent text or spacing. Disable it with Guttered: Hover Action ( With the inset placement, hover over a branch-change marker to preview the removed and added lines. Click Open Diff with Merge Base in the hover to open VS Code's diff view at that change, including unsaved edits. Large previews are shortened; the diff view shows the full comparison.
The preview compares the original threshold of 100 with the unsaved value of 60 and shows the removed handling-fee line. Marker previews stay separate from code documentation. They require the inset placement, visible inlay hints, and Editor: Inlay Hints: Padding turned off (VS Code's defaults). If hints are hidden or padded, the markers and Guttered: Open Diff with Merge Base command still work. Guttered: Toggle On/Off disables or enables Guttered across the current workspace. Turning it off removes markers and previews, clears the changed-files view, and stops comparison updates. The choice is remembered for that workspace; enabling Guttered again preserves your per-folder settings and unsaved edits. The Guttered: Branch Changes section in Source Control lists changed files from the active file's repository, grouped under their parent folders. Consecutive folder-only paths are compacted into one row, similar to GitLens, while the underlying full paths remain available to diff actions. It uses the selected reference's merge base and includes committed, staged, unstaged, untracked, and unsaved changes. With no file selected, it uses the first workspace folder. Files use your file icon theme, with A (green), M (blue), and D (red) badges for added, modified, and deleted files. Badge colors follow your theme's Git gutter colors. Click a file to compare its read-only merge-base version on the left with the working file, including unsaved edits, on the right. Hover over a file row and click its Open File icon to open the working file directly. Added files have an empty left side; deleted files have an empty right side. Baseline loading keeps the existing text and size limits. Renames appear as a deletion and an addition, matching the gutter's path-based comparison. The tree updates automatically while visible. It lists saved file changes through Git and applies open, unsaved buffers on top, so restoring a buffer to the baseline removes that file from the list. Binary and large files can appear in the tree even when their gutter comparison is unavailable. The view's toolbar offers toggle, reference selection, refresh, and diff-view selection. The Source Control icon keeps VS Code's normal count of local changes. Choose a diff viewPreview Change with Merge Base opens the selected diff view at the changed line. Run Guttered: Select Diff View from the Command Palette or the Branch Changes toolbar to choose either mode. The choice is saved for the current workspace folder, or in user settings for a file outside a workspace:
The merge base is on the left; the current buffer is on the right. Clojure highlighting comes from VS Code, using the installed grammar and theme.
Quick Diff keeps the preview inside the file. Its selector lets you compare with either Guttered merge base or Git Local Changes. When a hover action or injected glyph click opens Quick Diff, VS Code may initially choose Git Local Changes. Select Guttered merge base, followed by your repository’s name, in the dropdown at the top of the preview to see the branch comparison. The command that opens this preview has no supported parameter for forcing a provider. The native diff editor always opens Guttered’s merge-base comparison directly. Quick Diff uses the editor’s SCM decoration settings and colors. It shares Git’s indicator lane, while Guttered’s existing glyph/inset markers keep their own appearance. Its Source Control entry lists changes in open compared files; the Branch Changes tree continues to list the whole branch. Choosing Native diff editor removes the extra provider. Clicking a native gutter indicator opens the supported SCM preview directly. Quick Diff is inline only; Full Diff offers both layouts. If Version 0.7.0 replaces the previous custom diff panel. Both new modes use installed language grammars, file associations, the working file’s language mode, and editor token-color customizations. They work with Comparison actionsA hunk is a group of adjacent changed lines. Alongside the diff-view actions above, the available actions are:
All actions appear in the Command Palette and status bar menu. The Guttered editor context menu contains preview, diff, navigation, and restore. Right-click the line number or glyph margin of a changed line for Preview Change with Merge Base, Open Diff with Merge Base, and Restore Change from Merge Base at that line, below VS Code's breakpoint actions. You can assign shortcuts in VS Code's Keyboard Shortcuts editor; Guttered doesn't install default bindings. Base-reference overrides apply to the current workspace folder, so repositories nested in that folder share the override. For a file outside every workspace folder, the command updates user settings and affects all workspaces. The picker states which scope it will change. It lists branches already available locally; it does not fetch. Experimental gutter clicksFor the selected diff view with one click directly on the glyph marker, run Guttered: Enable Gutter Clicks (Experimental) in the Command Palette, then choose Reload Window. This option is off by default. It requires a writable desktop VS Code installation. Local workspaces need only Guttered. For Windows VS Code connected to WSL, enable the hook in a local Windows window first, then open WSL with the matching Guttered version installed there. An already-installed hook connects directly to the remote extension; the companion is optional. To install or restore the Windows hook from inside WSL, install Guttered Remote/WSL Helper locally on Windows. The same routing supports desktop SSH and container workspaces; browser-hosted VS Code is unsupported. Status works from WSL in either setup. With the companion installed locally, Enable and Disable/Restore also work from the WSL window: the companion handles the Windows installation while comparisons and diff commands stay in WSL. Without it, run the installation or restore commands in a local Windows window. The injection setting belongs to the desktop client, applies across its local and remote windows, and is excluded from Settings Sync by default. Guttered and the companion must contain the same hook revision; Guttered reports mismatched versions instead of connecting. The command appends a small hook to the desktop client's workbench JavaScript and saves a verified backup beside that file. It uses VS Code's internal editor and command services to identify the clicked file, line, and document version. In a remote window, it sends URI objects through VS Code's command/RPC routing so VS Code translates remote authorities and paths for the workspace host. Each workspace activation gets its own session, and stale sessions or document versions are rejected. It opens no local server and does not relax the workbench's Content Security Policy. Only ordinary left clicks on a Guttered glyph are handled. Right clicks, modifier clicks, line numbers, native Git indicators, and breakpoints retain their normal behavior. If another glyph shares the same slot, its native action takes priority. The inset placement continues to use its existing hover action. This uses unsupported workbench internals. VS Code may show an installation-integrity warning, and application updates or Guttered hook changes may require running Enable Gutter Clicks again and reloading. Guttered never patches an update automatically. Guttered: Gutter Clicks Status reports whether the hook is active in the current window. Other already-open windows need reloading after installation or restoration. Run Guttered: Disable Gutter Clicks and Restore Workbench before uninstalling Guttered or its local companion. It stops click handling immediately, removes only Guttered's verified hook, and offers a reload. An application update is preserved rather than overwritten with the previous backup. If another tool changed the hook itself or damaged its recovery files, restoration stops and reports the backup path in Output → Guttered Gutter Clicks. Setting How comparison worksGuttered identifies the repository containing each visible file. It reads The baseline is Typing updates the indicators after a 250 ms pause by default. Git events and a three-second poll handle branch switches, rebases, merges, resets, fetches, changes to ignore rules, and new nested repositories. Polling pauses while the VS Code window is in the background and resumes when it gains focus. Only visible documents receive line comparisons; the changed-files tree also includes unsaved buffers from other open documents. Cached baselines, diffs, and saved-file lists avoid repeated work while typing. A hidden tree does not scan the repository. Guttered's Git operations are read-only. It never fetches, changes refs, stages files, or changes Git configuration. SettingsSettings support workspace-folder overrides except
Troubleshooting and limitsWhen a comparison is unavailable, hover over the status item or open Output → Guttered for the reason. A repository needs an existing commit and a locally available base reference with shared history. Repositories without a remote need an explicit Base Reference setting. A missing branch may need fetching, and shallow or unrelated history may need more history or another base. If default-branch detection cannot reach the remote, restore network or authentication access and run Guttered: Refresh Comparison. You can also set Base Reference to a locally available branch and compare offline. To record the remote's default branch in Git, run VS Code's native Git bars compare against HEAD and the index, so they can appear alongside Guttered's branch comparison with different markers. Use
DevelopmentDesktop tests have passed on VS Code 1.95.3 and 1.141.0, including a separate run with built-in Git disabled. After
Desktop tests require a graphical session that can focus the test window. Headless Linux needs Xvfb and a window manager. Set The source files follow the work the extension performs: Transparent PNGs are available at 1254×1254 ( PublishingOn the machine that will publish releases, authenticate once with the Microsoft account that owns the publisher. Create an Azure DevOps personal access token with Organization: All accessible organizations and Custom defined → Show all scopes → Marketplace → Manage. Follow the VS Code publishing guide.
Paste the token into the masked login prompt. VSCE saves the credential outside this repository. Microsoft retires global personal access tokens on December 1, 2026; after that, use the guide's Microsoft Entra authentication workflow and pass For a new release, give the main extension and companion the same version, update both changelogs and documentation, run the tests, and commit the release changes before publishing. For example:
Packaging checks TypeScript and builds both extensions. Publishing with |





