Launch VS Code from the command line
When you install VS Code, it adds the
code command to your terminal.
⚠️ If you do not have access to the
code command, follow the setup instructions for your machine here.
✨ Trick - Open VS Code from the Terminal
Use the CLI to launch a new VS Code window, or open a file in the current workspace.
code . # current working dir code /path/to/dir # path code ~/.bash_profile # edit a root config file