Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Git File HighlightNew to Visual Studio Code? Get it now.
Git File Highlight

Git File Highlight

Alexey Zbinyakov

|
188 installs
| (0) | Free
Highlight files from specific git refs
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Git File Highlight for Visual Studio Code

Git File Highlight is a Visual Studio Code extension that highlights files in your explorer view that have changed based on specific Git references.

Git File Highlight Screenshot Git File Highlight Logo

Features

  • Highlight files changed between any two commits, branches, or tags.
  • Color highlighting for up to three different refs (customizable via VS Code color customizations).
  • Easy configuration through VSCode settings.

Getting Started

  1. Install the extension from the Visual Studio Code Marketplace.
  2. Open your VSCode settings and navigate to the "Git File Highlight" section.
  3. Configure the Git references (ref1, ref2, ref3) you want to track.
  4. (Optional) Customize colors via VS Code color customizations.

Usage

Once you have configured the refs, the extension will automatically highlight the files that have changed according to the specified refs.

Configuration

Here's a sample configuration for your settings.json:

"gitFileHighlight.ref1": "HEAD",
"gitFileHighlight.ref2": "origin/main",
"gitFileHighlight.ref3": "feature-branch"

by default only ref1 set to HEAD.

Color Customization

You can override the highlight colors via workbench.colorCustomizations.

Simple example (applies to the current theme):

"workbench.colorCustomizations": {
  "gitFileHighlight.ref1Color": "#d605de",
  "gitFileHighlight.ref2Color": "#ade603",
  "gitFileHighlight.ref3Color": "#1328e7"
}

Theme-specific example (different colors per theme name):

Note: the + is part of the built-in theme names (for example, Default Dark+). Tip: theme names support wildcards, so you can use * in brackets.

,
"workbench.colorCustomizations": {
  "[Default Dark*]": {
    "gitFileHighlight.ref1Color": "#FF69B4",
    "gitFileHighlight.ref2Color": "#00BFFF",
    "gitFileHighlight.ref3Color": "#FFD700"
  },
  "[Default Light*]": {
    "gitFileHighlight.ref1Color": "#3b063d",
    "gitFileHighlight.ref2Color": "#0a253a",
    "gitFileHighlight.ref3Color": "#312206"
  }
}

High Contrast example:

,
"workbench.colorCustomizations": {
  "[*High Contrast*]": {
    "gitFileHighlight.ref1Color": "#00FF00",
    "gitFileHighlight.ref2Color": "#FFFF00",
    "gitFileHighlight.ref3Color": "#FF00FF"
  },
  "[Dark High Contrast]": {
    "gitFileHighlight.ref1Color": "#00FF00",
    "gitFileHighlight.ref2Color": "#FFFF00",
    "gitFileHighlight.ref3Color": "#FF00FF"
  },
  "[Light High Contrast]": {
    "gitFileHighlight.ref1Color": "#00AA00",
    "gitFileHighlight.ref2Color": "#AAAA00",
    "gitFileHighlight.ref3Color": "#AA00AA"
  }
}

Feedback

If you have suggestions or issues, please feel free to open an issue on GitHub.

Note: Most of the code was created by the geminy 1.5 LLM model.

Contributing

Pull requests are welcome.

License

MIT License

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft