how to open vscode in terminal code example
Example 1: open vscode in terminal sudo
sudo code --user-data-dir="~/.vscode-root"
Example 2: shortcut to open vscode from terminal
path code .
Example 3: mac open vs code from terminal
$ alias code="open -a /Applications/Visual\ Studio\ Code.app"
#Open Visual Studio Code by command
$ code .