Following steps will help you to make code . command in Terminal to open VSCode on MAC
Install "Shell" extension from VSCode:
Press F1 when VSCode is opened.
Type "Shell" and select the following option: Shell Command: Install 'code' command in PATH command
"Shell command 'code' successfully installed in PATH" message will be presented.
Run "which code" command in the Terminal to verify that "code" command has been sent to PATH :
Running "code ." command will open the VSCode at the location where Terminal is opened.