Run VSCode from the macOS Terminal
Run VSCode from the Terminal
You can move to a specific directory in the terminal and open a specific file.
$ code [File path]
The setup method is as follows.
- Launch Visual Studio Code.
- Press Command Palette (⇧⌘P) to open the command palette.
- Type
shell command, findShell Command: Install 'code' command in PATH, and run it.