Skip to content

A Visual Studio Code extension for visualising the relative age of lines in source under Git version control. Helps with understanding how code has changed over time while auditing.

License

chrisjdavies/vscode-heatmap

Repository files navigation

Heatmap for VS Code

Heatmap

Heatmap lets you visualise the relative age of lines in source under Git version control. By toggling the heatmap on, the background colour of every line in the file is altered to reflect the relative age; the brightest lines are the most recent.

Requires git in your $PATH.

Originally created to help understand how code has changed over time while auditing for security issues.

Installation

Install through the Visual Studio Code Marketplace: https://marketplace.visualstudio.com/items?itemName=chrisjdavies.heatmap

Example

Here's a screenshot showing the relative age of some lines in the FreeBSD kernel source:

Screenshot

Commands

Heatmap adds the following commands to the command palette:

  • Heatmap: On
  • Heatmap: Off

Configuration

Property Description Type Default value
heatmap.heatLevels The number of different heat levels to visualise. Integer 10
heatmap.heatColour The R,G,B of the brightest heat level. String 200,0,0

Thanks

  • Thanks to DALL-E 3 for generating the icon/logo.

About

A Visual Studio Code extension for visualising the relative age of lines in source under Git version control. Helps with understanding how code has changed over time while auditing.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published