launch vs code from terminal ubuntu code example
Example 1: how to open ubuntu file in visual studio
$ code
$ code my-file
Example 2: open visual studio code from terminal ubuntu
code /path/filename
$ code
$ code my-file
code /path/filename