Last updated: Apr 6, 2024
Reading time·3 min
To install an older version of an extension in VS Code:
Ctrl
+ Shift
+ X
on Windows or Linux.Command
+ Shift
+ X
on macOS.@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.
Make sure the extension in question is installed.
Right-click on the installed extension and select Install Another Version.
Select another version using the arrow keys and hit Enter
to install it.
Once you install the older version, you will be prompted to reload the IDE.
Here is a short clip that demonstrates how this works.
If you open the extension's page, you will now see an Update to vX.Y.Z button.
The Install Another Version... command is also accessible if you click on the cogwheel icon in the list of extensions.
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.
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.
Ctrl
+ Shift
+ P
(or Command
+ Shift
+ P
on macOS).F1
to open the Command Palette.You can also open the settings screen by pressing Ctrl
+ ,
on Windows and
Linux or Cmd
+ ,
on macOS.
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:
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.
You can learn more about the related topics by checking out the following tutorials: