Source Info: https://linuxize.com/post/how-to-install-visual-studio-code-on-debian-10/
Install dependencies
sudo apt update
sudo apt install software-properties-common apt-transport-https curl
Import Microsoft GPG
curl -sSL https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
Add repository
sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
Install VS Code
sudo apt update
sudo apt install code
same problem experienced with my laptop as LaxmanMaharjan