'code' is the built in shortcut to open VSCode in Mac terminal, but you need to enable it initially from VSCode.
Open the Command Palette (Cmd+Shift+P), type 'shell' or 'shell command', and run the Shell Command: Install 'code' command in PATH command.
Note: You can also see the uninstall option there as well.
See [here][1] for more details
[1]: https://code.visualstudio.com/docs/setup/mac#:~:text=Open%20the%20Command%20Palette%20(Cmd,editing%20files%20in%20that%20folder.