Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>Disk Size TreemapNew to Visual Studio Code? Get it now.
Disk Size Treemap

Disk Size Treemap

G-Yong

|
2 installs
| (1) | Free
Visualize workspace file and folder sizes as an interactive squarified treemap
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Disk Size Treemap

English | 中文

  • GitHub
  • Marketplace

Features

  • 📁 File Structure View — Interactive squarified treemap showing files and folders proportional to their size. Click folders to drill down, click files to reveal in VS Code Explorer.
  • 🎨 File Types View — Aggregate treemap by file extension, showing which types consume the most disk space. Click any type to jump to its largest files.
  • 📊 Largest Files View — Sortable table of the largest files in the workspace, filterable by file type. Click rows to reveal in explorer.

Usage

Open the Treemap

Right-click in the Explorer and select "Show Disk Size Treemap":

  • Empty area — shows the full workspace tree
  • On a folder — shows that folder's contents directly
  • On a file — shows the file's parent folder, so you can see its siblings in context

You can also open the Command Palette (Ctrl+Shift+P) and run the same command to scan the workspace root.

Icons

File and folder icons use VS Code Codicons, keeping the visual style consistent with the rest of your editor. Icons are automatically chosen based on file extension:

Icon Category Examples
codicon-file-code Source code .js, .ts, .py, .cpp, .java, .rs, .go, .css, .html
codicon-file-media Images & media .png, .jpg, .gif, .mp4, .mp3, .wav
codicon-file-zip Archives .zip, .rar, .7z, .tar.gz
codicon-file-binary Binaries .exe, .dll, .wasm, .class
codicon-file-pdf PDF .pdf
codicon-file Other files .txt, .docx, .xlsx, .log

Switch Views

Use the tabs at the top of the treemap panel:

Tab Description
📁 File Structure Navigate folder hierarchy, proportional area treemap
🎨 File Types Aggregate by extension, click to see largest files of that type
📊 Largest Files Top-N table, filter by type, double-click to reveal

Largest Files Filter

In the Largest Files view, use the dropdown to filter by a specific file extension, or leave as "All Types" to see everything. Adjust the "Top N" number to control how many files are shown.

Interact

  • Click a folder in File Structure view to drill down
  • Click any file tile or table row to reveal it in the VS Code Explorer
  • Hover over tiles for detailed size information

Color Legend

Category Extensions Color
JavaScript / TypeScript .js, .ts, .jsx, .tsx, .mjs, .cjs Yellow / Blue
Styles / Markup .css, .scss, .html, .xml, .md Blue / Orange
Data / Config .json, .yaml, .toml, .env Teal / Red
Images / Media .png, .jpg, .gif, .svg, .mp4, .mp3 Orange / Purple
Archives .zip, .rar, .7z, .tar.gz Gold
Documents .pdf, .docx, .xlsx, .pptx Red / Blue / Green
Python .py, .ipynb Dark Blue
C / C++ .c, .cpp, .h, .hpp Pink / Gray
Go / Rust .go, .rs Cyan / Orange
Java / Kotlin .java, .kt Brown / Purple
Shell / Batch .sh, .ps1, .bat Green
Directories (folders) Blue

Extension Settings

This extension currently has no configurable settings. All views are available out of the box.

Development

# Install dependencies
npm install

# Compile TypeScript
npm run compile

# Watch mode
npm run watch

# Package as .vsix
npx @vscode/vsce package

Press F5 in VS Code to launch the Extension Development Host and test the extension.

License

MIT

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