To open a file or directory use the command:
code /path/to/file/or/directory/you/want/to/open
For macOS users, it needs to be installed manually:
- Launch VS Code.
Command + Shift + Pto open the Command Palette.- Type
shell command, to find theShell Command: Install 'code' command in PATHand select to install it. - Restart your terminal.