Debian

How to Update Visual Studio Code on Debian 12

Microsoft releases new versions of Visual Studio Code pretty frequently. Each new release of Visual Studio Code adds new features and bug fixes to Visual Studio Code. So, it’s recommended to keep the Visual Studio Code up-to-date.

In this article, we will show you how to update the Visual Studio Code on Debian 12.

Topic of Contents:

    1. Update the APT Package Database of Debian 12
    2. Check the Currently Installed Version of Visual Studio Code
    3. Check If a Newer Version of Visual Studio Code Is Available
    4. Update the Visual Studio Code to the Latest Version on Debian 12
    5. Check If the Visual Studio Code Is Updated to the Latest Version
    6. Conclusion

Update the APT Package Database of Debian 12

First, update the APT package database of Debian 12 with the following command:

$ sudo apt update

 

Check the Currently Installed Version of Visual Studio Code

As you can see, we have the Visual Studio Code version 1.78.1 installed on our Debian 12 machine.

$ code --version

 

Check If a Newer Version of Visual Studio Code Is Available

To check if a newer version of Visual Studio Code is available, run the following command:

$ apt list --upgradable | grep code

 
As you can see, the Visual Studio Code version 1.79.2 is available which is newer than the one that we installed on our Debian 12 machine.

Update the Visual Studio Code to the Latest Version on Debian 12

To update the Visual Studio Code to the latest version on Debian 12, run the following command:

$ sudo apt install code

 
The Visual Studio Code is being updated. It takes a few seconds to complete.


The Visual Studio Code should be updated to the latest version.

Check If the Visual Studio Code Is Updated to the Latest Version

As you can see, the Visual Studio Code is updated to version 1.79.2 from 1.78.1.

$ code --version

 

Conclusion

In this article, we showed you how to check the version number of the Visual Studio Code Editor/IDE that you installed on Debian 12. We also showed you how to check if a newer version of Visual Studio Code is available and how to update the Visual Studio Code to the latest version on Debian 12.

About the author

Shahriar Shovon

Freelancer & Linux System Administrator. Also loves Web API development with Node.js and JavaScript. I was born in Bangladesh. I am currently studying Electronics and Communication Engineering at Khulna University of Engineering & Technology (KUET), one of the demanding public engineering universities of Bangladesh.