how to open file in vscode from terminal code example
Example 1: vs code a project folder from the command line
cd my-project-folder/
code -n .
Example 2: how to open ubuntu file in visual studio
$ code
$ code my-file
Example 3: adding code . in the terminal
code () { VSCODE_CWD="$PWD" open -n -b "com.microsoft.VSCode" --args $* ;}