I get this error:
code . is not recognised as an external or internal command, operable program or batch file
code .
For Mac OS, You can paste this into your terminal, or in your .bashrc file (or whatever shell config file you are using) :
.bashrc
export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"