vscode command sudo code example
Example 1: how to run vscode as root
sudo code --user-data-dir="~/.vscode-root"
Example 2: updating vscode on 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