How to call VS Code Editor from terminal / command line
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 + P to open the Command Palette. Type shell command, to find the Shell Command: Install ‘code’ command in PATH and select to install it. Restart your terminal.