open vs code from terminal ubuntu code example
Example 1: install vscode ubuntu command line
sudo snap install --classic code
Example 2: how to open ubuntu file in visual studio
$ code
$ code my-file
Example 3: open visual studio code from terminal ubuntu
code /path/filename