Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>CODEOWNERS VisualizerNew to Visual Studio Code? Get it now.
CODEOWNERS Visualizer

CODEOWNERS Visualizer

cmtrounce

|
10 installs
| (0) | Free
Generates an interactive tree-like graph of code ownership for folders and files in your project.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

CODEOWNERS Visualizer

CODEOWNERS Visualizer Icon

Run Tests VSCode Marketplace License

Simplify code ownership management with beautiful interactive visualizations


✨ Features

  • 🌳 Interactive Tree Visualization - Generate beautiful tree-like graphs of your codebase ownership
  • 👥 Team Management - Easily see which teams own which parts of your codebase
  • 📁 Multi-location Support - Automatically finds CODEOWNERS files in common locations
  • 🎯 Pin Important Teams - Pin frequently used teams for quick access
  • 💾 Export Capabilities - Save graphs as SVG files for documentation
  • 🔍 Smart Parsing - Handles complex CODEOWNERS syntax including quoted paths and escaped spaces
  • 🌍 Multi-language Support - Built-in localization for English and Spanish with easy extensibility

🎬 Demo

CODEOWNERS Visualizer Demo

🚀 Quick Start

1. Install the Extension

Install from the VSCode Marketplace or search for "CODEOWNERS Visualizer" in VS Code.

2. Install Graphviz

The extension requires Graphviz for rendering the interactive graphs.

Windows
  1. Visit the Graphviz download page for Windows
  2. Download the MSI installer for your Windows version (64-bit or 32-bit)
  3. Run the installer and follow the on-screen instructions
  4. Add the Graphviz bin directory to your system's PATH environment variable
macOS
brew install graphviz

Homebrew will automatically add Graphviz to your system's PATH.

Linux (Ubuntu/Debian)
sudo apt-get install graphviz

3. Start Visualizing

  1. Open a workspace with a CODEOWNERS file
  2. Look for the "Codeowners Teams" panel in the Explorer
  3. Click on any team to generate an interactive ownership graph

📋 Supported CODEOWNERS Features

✅ Basic path patterns - src/main.js @team1 @team2
✅ Quoted paths with spaces - "src/my folder/file.txt" @team1
✅ Escaped spaces - src/file\ with\ spaces.js @team1
✅ Comments - src/main.js @team1 # This is a comment
✅ Email addresses - docs/* docs@example.com
✅ Special characters - src/main#.js @team1, src/@main.js @team1
✅ Multiple locations - Automatically finds CODEOWNERS, .github/CODEOWNERS, docs/CODEOWNERS
✅ Glob patterns - Full support for *.js, **/logs, {js,ts}, [abc], etc.

⚙️ Configuration

The extension provides several configuration options to customize your experience:

Status Bar Integration

  • codeownersTeams.showStatusBar (default: false) - Shows current file's codeowner in status bar

Hover Information

  • codeownersTeams.showHoverInfo (default: false) - Shows codeowner info on file hover

Pinned Teams

  • codeownersTeams.pinnedTeams (default: []) - Array of team names to pin at top

How to Configure

  1. Open VS Code Settings (Cmd/Ctrl + ,)
  2. Search for "CODEOWNERS Visualizer"
  3. Toggle features on/off

🛠️ Development

Prerequisites

  • Node.js (version 20 or higher)
  • npm
  • Git

Setup

git clone https://github.com/cmtrounce/codeowners-tree.git
cd codeowners-tree
npm install
npm run compile

Testing

npm test
npx mocha test/**/*.test.js
npm run lint

Localization

Uses VS Code's built-in localization system (@vscode/l10n). See Localization Guide for details.

🤝 Contributing

Contributions are welcome! Please see our Contributing Guide for details on how to get started.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Credits

This extension is based on the original CODEOWNERS Tree by Andrei Ignatev, with additional improvements and features.

🫶 Support this project

Buy me a coffee


Made with ❤️ for the VSCode community

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