Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>ChurnLensNew to Visual Studio Code? Get it now.
ChurnLens

ChurnLens

Paul Melero

|
1 install
| (0) | Free
Visualizes code churn in a Churn Explorer sidebar.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

ChurnLens - VS Code Extension


Logo

ChurnLens

ChurnLens helps you identify "hotspots" in your codebase by visualizing code churn directly in the VS Code File Explorer. Files that change frequently are highlighted with different colors in a custom "Churn Explorer" sidebar, allowing you to spot potential areas of instability, high churnor high maintenance at a glance.

This extension is inspired by the research on code churn as a predictor of defects:

Code Churn: A Measure for Estimating the Impact of Code Change > J.C. Munson; S.G. Elbaum IEEE International Conference on Software Maintenance, 1998.

Features

ChurnLens

  • Churn Explorer: A dedicated sidebar exploring the churn of your project with a tree view.
  • Context Menu Integration: Right-click on any file in the Churn Explorer to view its Git history in GitHub.
  • Configurable Lookback: Adjust the time window for churn calculation (default: 30 days).

Configuration

You can configure ChurnLens via the built-in configuration page or standard VS Code settings.

Configuration Page

Run the command ChurnLens: Open Configuration to open the visual configuration editor. Here you can:

  • Set the Churn Calculation Period (in days).

Extension Settings

  • churnlens.periodDays: Number of days to look back in git history to calculate churn (default: 30).
  • churnlens.hideRoot: Hide the root project folder from the Churn Explorer (default: true).

Color Customization

While the UI customization has been streamlined, you can still customize the 6 churn levels in your settings.json using workbench.colorCustomizations:

"workbench.colorCustomizations": {
    "churnlens.level1": "#90EE90", // Low Churn
    "churnlens.level2": "#ADFF2F",
    "churnlens.level3": "#FFD700",
    "churnlens.level4": "#FFA500",
    "churnlens.level5": "#FF4500",
    "churnlens.level6": "#FF0000"  // High Churn
}

Commands

  • ChurnLens: Open Configuration: Opens the configuration webview.
  • ChurnLens: Refresh Stats: Manually recalculates churn statistics and updates decorations.
  • See git history in github: (Context menu) Opens the file's history on GitHub.

Requirements

  • The opened folder must be a Git repository.
  • Git must be installed and available in your system PATH.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft