open visual studio code from terminal ubuntu

C++
code /path/filenamecode -r <path-to-working-directory>$ code
$ code my-file

Source

Also in C++: