How to install an Older Version of an Extension in VS Code

avatar
Borislav Hadzhiev

Last updated: Apr 6, 2024
3 min

banner

# How to install an Older Version of an Extension in VS Code

To install an older version of an extension in VS Code:

  1. Click on Extensions in the left sidebar.
  • You can also open the Extensions menu by pressing:
    • Ctrl + Shift + X on Windows or Linux.
    • Command + Shift + X on macOS.
  1. Search for the extensions you want to roll back.
You can use filters such as @installed or @enabled to only search in your installed or enabled extensions.

For example, @installed todo only searches for a todo extension in your installed extensions.

  1. Make sure the extension in question is installed.

  2. Right-click on the installed extension and select Install Another Version.

right click install another version

  1. A menu with a list of the extension's versions and how long ago they were published is shown.

select another version from menu

  1. Select another version using the arrow keys and hit Enter to install it.

  2. Once you install the older version, you will be prompted to reload the IDE.

reload your ide

  1. Click on the Reload Required button and the older version of the extension is installed.

Here is a short clip that demonstrates how this works.

install older version of extension

If you open the extension's page, you will now see an Update to vX.Y.Z button.

update button on extension page

The Install Another Version... command is also accessible if you click on the cogwheel icon in the list of extensions.

install another version using cogwheel icon

You can also access the command if you open the extensions page in VS Code and click on the arrow next to the Uninstall button.

install another version using arrow icon

# VS Code automatically updates most extensions

By default, VS Code automatically updates extensions but it doesn't update extensions for which you've installed an older version.

If you install an older version of an extension, it gets skipped when automatically updating.

However, in some rare cases, you might encounter issues with extensions automatically updating, so it's good to know how to change this behavior in your settings.

  1. Press Ctrl + Shift + P (or Command + Shift + P on macOS).
Note: you can also press F1 to open the Command Palette.
  1. Type user settings and select Preferences: Open User Settings.

open user settings

You can also open the settings screen by pressing Ctrl + , on Windows and Linux or Cmd + , on macOS.

  1. Type extension auto update.

extension auto update

When the Extensions: Auto Check Updates setting is enabled, extensions are automatically checked for updates.

If a newer version of an extension is available, the extension is marked as outdated in the Extensions view.

The Extensions: Auto Update setting controls the automatic update behavior of extensions.

It has 3 possible values:

  • All extensions - automatically update all extensions (except for ones that you have explicitly rolled back).
  • Only enabled extensions - automatically update only enabled extensions.
  • None - extensions are not automatically updated.

As previously noted, VS Code doesn't automatically update extensions for which you've installed an older version.

However, if you run into issues with extensions unexpectedly updating, you can set the Extensions: Auto Update setting to None to disable this behavior.

Then you would have to manually click on the Update button on the selected extensions to update them.

I've also written an article on how to export your settings and extensions in VS Code.

# Additional Resources

You can learn more about the related topics by checking out the following tutorials:

I wrote a book in which I share everything I know about how to become a better, more efficient programmer.
book cover
You can use the search field on my Home Page to filter through all of my articles.