Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Version LensNew to Visual Studio Code? Get it now.
Version Lens

Version Lens

pflannery

versionlens.net
|
2,382,970 installs
| (90) | Free
Shows the latest version for each package using code lens
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VersionLens for Visual Studio Code

Version Installs Rating The ISC license

This project is active, not sponsored or funded.

BuyMeACoffee

VersionLens shows version information when opening a package or project file in VS Code. It abides by semver rules and uses the Node Semver package to compare and sort versions.

Show releases

Contents

  • Supported Languages & Ecosystems
  • How do I see version information for a package?
  • Pre-release versions
  • Can I check for package vulnerabilities?
  • What do the suggestion links mean?
  • Will this extension install packages for me?
  • How do I authorize packages that need credentials?
  • How do I install this extension?
  • How do I troubleshoot this extension?
  • Commands & Settings
  • Development Guide

Supported Languages & Ecosystems

VersionLens supports a wide range of ecosystems:

  • Cargo (Rust): crates.io
  • Composer (PHP): packagist.org
  • Deno (JSR/NPM): deno.com
  • Docker: Docker Hub / MCR
  • Dotnet: NuGet
  • Dub (D): code.dlang.org
  • Go: proxy.golang.org
  • Maven (Java): Maven Central
  • NPM (Node): npmjs.com, JSPM, PNPM
  • Pub (Dart/Flutter): pub.dev
  • Python: PyPI
  • Ruby: rubygems.org

Note: TOML files require an extension that registers the TOML language with VS Code (e.g., Even Better TOML).

How do I see version information for a package?

Select the V icon in the package/project file toolbar.

You can also find this in the editor ... (secondary) menu as Show release versions.

You can also set the default startup state using versionlens.suggestions.showOnStartup in your settings.

Can I see pre-release versions?

Yes, select the tag icon in the package/project file toolbar.

You can also find this in the editor ... (secondary) menu as Show prerelease versions.

You can also set the default startup state using versionlens.suggestions.showPrereleasesOnStartup.

Show prereleases

Can I check for package vulnerabilities?

VersionLens integrates with OSV.dev to highlight vulnerable packages directly in your manifest files.

If a vulnerability is found for your current version, a red squiggle will appear under the version. Hovering over the version will show the vulnerability details and a direct link to the advisory.

Note: This feature is enabled by default and can be toggled using the versionlens.suggestions.showVulnerabilities setting.

Will this extension install packages for me?

Yes, you can define a custom task that runs when you save a package document.

To set this up, follow the Custom Install Task Guide.

How do I install this extension?

Install via the VS Code Extension Gallery.

Manual Installation

Visit the Releases page for VSIX instructions.

Installation Troubleshooting

If you are unable to install the extension, try a clean install:

  1. Shut down VS Code.
  2. Delete the extension folder: {home}/.vscode/extensions/pflannery.vscode-versionlens.
  3. Restart VS Code and reinstall.

Note: Check the Log (Extension Host) in the Output channel for specific errors during installation. image

How do I troubleshoot this extension?

  • CodeLens Enabled: Ensure "editor.codeLens": true is set in your settings.
  • Action Icons: Ensure "workbench.editor.editorActionsLocation": "hidden" is not set.
  • Clear Cache: Open the Command Palette (Ctrl+Shift+P / Cmd+Shift+P) and type VersionLens: Clear cache.
    • Cache duration is managed by versionlens.caching.duration (default is 3 minutes).
  • Logging: Set your log level to debug via the Command Palette (Developer: Set Log Level) or the VersionLens output channel. image
  • Developer Tools: If no logs are visible, check for errors in the VS Code Developer Tools (Help > Toggle Developer Tools).

Commands & Settings

For a full list of available commands and configuration options, see the Commands & Settings Guide.

License

Licensed under ISC.

Copyright © 2016+ contributors

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