Installing VS Code on Raspberry Pi
Log into the Raspberry Pi
Open the web browser and go to https://code.visualstudio.com
Click Other platforms
Under the Linux section (penguin icon), to the right of .deb, select ARM
NOTE: The other .deb versions are for 64-bit operating systems. The default Raspberry Pi image is 32-bit

When the download completes, click on the downloaded file an select to install. If prompted, enter your password to confirm
When installation is finished, go to the start menu and select Programming | Visual Studio Code
Command Line Instructions
If you wish to install via command line, copy/paste the following into the command line (inspired by instructions at https://code.visualstudio.com/docs/setup/linux)
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg sudo install -o root -g root -m 644 packages.microsoft.gpg /etc/apt/trusted.gpg.d/ sudo sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/trusted.gpg.d/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list' sudo apt install -y apt-transport-https sudo apt update sudo apt install -y code