how to open visualstudiocode from terminal raspberry pi code example

Example 1: raspberry pi install vscode via command line

sudo wget -qO - https://packagecloud.io/headmelted/codebuilds/gpgkey | sudo apt-key add -;
sudo nano /etc/apt/sources.list
#Add the following to the file: deb https://packagecloud.io/headmelted/codebuilds/raspbian/ jessie main
sudo dpkg --add-architecture armhf && sudo apt-get update && sudo apt-get install code-oss:armhf
sudo apt-get update

Example 2: install visual studio code raspberry pi

curl -L https://raw.githubusercontent.com/headmelted/codebuilds/master/docs/installers/apt.sh | sudo bash