Skip to content

A POC extension for Visual Studio Code that shows by varying background color how old the changes in your editor are

License

Notifications You must be signed in to change notification settings

kodanbce/aging-lines-vscode

Repository files navigation

Aging Lines

A POC extension for Visual Studio Code that lets you style source code lines by their commit age

Table of Contents

Screenshot of the extension in use

About

Software bugs are often caused by recently introduced changes. Therefore, when hunting down bugs, it is usually helpful to refer to git log and look for anything suspicious. However, perusing commits one-by-one is mentally taxing since you often need to keep all the diffs, line numbers and commit messages in your memory and it's easy to lose track of things.

This extension colors lines' backgrounds based on when they were last changed. In other words, it lets you see the annual rings of a file and thus gain a high-level understanding of its changes. Seeing the volatility of lines with your eyes might let you notice things – and bugs – you might not be able to spot in plain logs.

Usage

Open up VSCode, press Ctrl+P and paste this in: ext install kodanbce.aging-lines-vscode. Press Ctrl+Shift+P and type in "Toggle Aging Lines" to enable the extension. You can change the age and style settings with Ctrl+,. The settings format should be fairly obvious. The styles you can set are documented here.

Prerequisite

You need to have git executable from the command line.

🔨 Development

Clone this repo, open it up in VSCode and hit F5 to spawn a debug window with the extension enabled.

You can modify the extension in the first window and hit Ctrl+Shift+F5 to respawn the debug window.

When using the debug window, remember to enable the plugin's functionality via Ctrl+Shift+P with the command name "Toggle Aging Lines".

🎉 Deployment

You can publish a new version of the code with the vsce tool. See here.

📃 License

MIT

About

A POC extension for Visual Studio Code that shows by varying background color how old the changes in your editor are

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published