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.
Install through the Visual Studio Code Marketplace: https://marketplace.visualstudio.com/items?itemName=chrisjdavies.heatmap
Here's a screenshot showing the relative age of some lines in the FreeBSD kernel source:
Heatmap adds the following commands to the command palette:
- Heatmap: On
- Heatmap: Off
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 to DALL-E 3 for generating the icon/logo.