Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Package Size InlineNew to Visual Studio Code? Get it now.
Package Size Inline

Package Size Inline

El1k-1

|
18 installs
| (2) | Free
Shows package sizes (weight) inline next to dependencies in package.json
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Package Size Inline

A VS Code extension that shows package sizes (in kB/MB) inline next to each dependency in package.json under dependencies and devDependencies.

Sizes are fetched from the npm Registry (unpackedSize). For file: dependencies, the size shown is the size of the package as installed in node_modules (built/minified output).

Example

Package size inline example

Inline annotations (e.g. 5.6 MB, 81.6 kB) appear next to each package version.

Installation

From Open VSX Registry

ovsx install El1k-1.package-size-inline

From VS Code Marketplace

Search for "Package Size Inline" in VS Code Extensions marketplace.

Manual Installation

  1. Download the .vsix file from Releases
  2. In VS Code: Extensions → ... → Install from VSIX

How to use

  1. Install the extension (or run from folder via Run and Debug).
  2. Open any package.json.
  3. Each dependency line will show a label like 📦 12.5 kB to the right (or — if the size could not be determined).

Settings

  • packageSizeInline.enabled — Turn inline size display on or off.

Development

cd package-size-inline
npm install
npm run compile

In VS Code: Run and Debug → Run Extension. A new window opens with the extension loaded; open any package.json there.

Packaging .vsix

npm install -g @vscode/vsce
vsce package

Then: Extensions → ... → Install from VSIX and select the .vsix file.

License

MIT — see LICENSE.

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