Run / Open VSCode from Mac Terminal

Open Visual Studio Code
Open the command palette with Command + Shift + P (or F1)
Type
Shellin the command paletteSelect
Shell Command: Install code in PATHfrom the suggested list
That's it.
Now open your terminal type.
$ code .
Tham khảo:
https://stackoverflow.com/questions/30065227/run-open-vscode-from-mac-terminal