open visual studio code from terminal ubuntu code example
Example 1: code command line options
code -r <path-to-working-directory>
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