# Install code command
[Running Visual Studio Code on macOS](https://code.visualstudio.com/docs/setup/mac)
- Launch VS Code.
- Open the **Command Palette** (Cmd+Shift+P) and type 'shell command' to find the **Shell Command: Install 'code' command in PATH** command.
![[shell-command.png]]
- Restart the terminal for the new `$PATH` value to take effect. You'll be able to type 'code .' in any folder to start editing files in that folder.
```shell
which code
#=> /usr/local/bin/code
```