Visual Studio Code is an integrated development environment made by Microsoft for Windows, Linux, and macOS. Features include support for debugging, syntax highlighting, intelligent code completion, snippets, code refactoring, and embedded Git.
Method 1
Go to the below website
https://code.visualstudio.com/download
Download .deb package
Install it by
dpkg – i <package path>/<package name>.deb
Method 2
copy following commands on by one
sudo apt update
sudo apt install apt-transport-https
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/
sudo apt update -y
sudo apt install code -y