The Easy Way
You can install visual studio code in Ubuntu from snap environment
alex@alexa-pc:~$ sudo snap install vscode
The problem with the snap application that they are installed in sand boxed environment. Hard to recommend it.
Another way around
Go to https://code.visualstudio.com/ and click for the .deb package. After download. Press CTRL+ALT+T, the terminal will appear and write:-
alex@alexa-pc:~$ cd ~/Downloads
alex@alexa-pc:~/Downloads$ sudo dpkg -i code_1.27.2-1536736588_amd64.deb
And enjoy using it. The version 1.27.2-1536736588 from previous code is changing.