This is the official method from Microsoft and allows you to open a folder in VS Code directly from your terminal.
- Launch VS Code.
- Open the Command Palette using the shortcut
Cmd + Shift + P. - Type shell command into the search bar.
- Select and run the command: