how to install vs code from ubuntu terminal code example
Example 1: visual studio code ubuntu
sudo snap install --classic code # or code-insiders
Example 2: how to update visual studio to the latest version in ubuntu
wget https://vscode-update.azurewebsites.net/latest/linux-deb-x64/stable -O /tmp/code_latest_amd64.deb
sudo dpkg -i /tmp/code_latest_amd64.deb