Microsoft has a version of Visual Studio Code which will run on the Raspberry Pi OS — formerly known as Raspbian. You can even download it from the APT (Advanced Packaging Tool). And it’s simply 2 lines of code to install:
sudo apt update
sudo apt install code
Afterward, you can launch it from the Programming menu in the GUI or by typing code in the terminal.
And the really nice thing about VS Code being in the APT is that you can update it like any other package on your Pi:
It is a good idea to periodically update your Raspberry Pi so you have the most recent version of your packages and patch security vulnerabilities. The easies way to do this is thru APT (Advanced Packaging Tool).
To get started, open up a Terminal window. We will want to make sure the APT has the most recent list of available packages. So first we will run:
sudo apt update
Next, run the following command to upgrade to the latest versions available:
sudo apt full-upgrade
We use the full-upgrade rather than just the basic upgrade so that any dependencies will also be updated.
A couple things you will want to keep in mind. First, this is only for day-to-day upgrades. It does not work on major releases.
Second is that APT will not check if you have enough disk space to run. Any previously downloaded package files will be kept in /var/cache/apt/archives. But you can easily remove them by running:
At some point you are going to want to know some information about the RAM on your Raspberry Pi — how much you have, how much is used, how much is free, etc. Thankfully, there is a simple terminal command to give you this information.
Open a terminal window and enter this command:
This will give you a quick glance at the RAM usage. The -h flag will display the information in a more human readable format.