open files in vscode from terminal code example
Example 1: code command line options
code -r <path-to-working-directory>
Example 2: adding code . in the terminal
code () { VSCODE_CWD="$PWD" open -n -b "com.microsoft.VSCode" --args $* ;}
code -r <path-to-working-directory>
code () { VSCODE_CWD="$PWD" open -n -b "com.microsoft.VSCode" --args $* ;}