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,122,434 installs
| (89) | 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

Version Lens for Visual Studio Code

Badge for version for Visual Studio Code extension Installs Rating The ISC license

This project is active, not sponsored or funded.

BuyMeACoffee

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

Show releases

The following languages are supported:

  • cargo (rust) https://doc.rust-lang.org/cargo/
  • composer (php) https://getcomposer.org/
  • deno (jsr) https://deno.com/
  • docker https://www.docker.com/
  • dotnet https://www.dotnetfoundation.org/
  • dub https://code.dlang.org/
  • maven (java) https://maven.apache.org/
  • npm (node) https://www.npmjs.com/
    • jspm https://jspm.org/
    • pnpm https://pnpm.io/
  • pub (dart) https://pub.dev/
  • python https://pypi.org/

NOTE

TOML needs an extenstion that registers the TOML language with vscode. e.g. https://marketplace.visualstudio.com/items?itemName=tamasfe.even-better-toml

Contents

  • How do I see version information for a package?
  • Pre-release versions
  • 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?
    • Can I install this extension manually?
    • I'm not able to install this extention
  • How do I troubleshoot this extension?

How do I see version information for a package?

Click the V icon in the package\project file toolbar.

You can also choose the default startup state by setting versionlens.suggestions.showOnStartup

Can I see pre-release versions?

Yes, click on the tag icon in the package\project file toolbar.

You can also choose the default startup state by setting versionlens.suggestions.showPrereleasesOnStartup

Show prereleases

Will this extension install packages for me?

Yes, you can define a task that will run when you save a package document.

To set this up follow the custom task install guide

How do I install this extension?

Follow this link on how to install vscode extensions

Can I install this extension manually?

Yes goto the release page for instructions

I'm not able to install this extention

Try a clean install:

  • Shut down vscode

  • Delete the extension folder {home}/.vscode/extensions/pflannery.vscode-versionlens

  • Open vscode and try reinstalling the extension again

    NOTE

    If the installation still fails then have a look for errors in the output channel and choose the Log (Extension Host) in the drop down.

    image

How do I troubleshoot this extension?

  • This plugin won't work unless you have "editor.codeLens": true enabled in your settings. (true is the default)

  • Version lens uses editor action icons so make sure you don't have "workbench.editor.editorActionsLocation": "hidden" set

  • Try resetting the cache by running the clear cache command (ctrl+p then type "Clear Cache") This setting can be changed using versionlens.caching.duration.

    You can try setting this value to 0 when doing tests but recommended to keep around 3 minutes for normal usage.

  • Version lens writes a log to an output channel in vscode.

    If you're experiencing issues then set your log level to debug.

    You can change the log level by either

    • ctrl+p then type Developer: Set Log Level; or
    • via the VersionLens output log window

    NOTE

    You may need to restart vscode if your issue is a start up problem.

    You can find the VersionLens output channel as seen in this picture:

    image

  • In the worst case no logs are output. There maybe an error in the developer tools of vscode. You can open the dev tools from the help menu in vscode

License

Licensed under ISC

Copyright © 2016+ contributors

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