Install VS Code in Ubuntu

sudo snap install --classic code

Output:

code f1b07bd2 from Visual Studio Code (vscodeāœ“) installed

Run the program by typing code in the terminal.