# VSCode Wouldn't Run With '$ code .' From Terminal?

Being able to run VSCode from terminal with simple command is so nice like following
```
$ code .
```
but sometimes it doesn't happen because PATH hasn't been configured properly or it has been modified since you last set it up.  Whatever the reason, VSCode has a remedy.

1. Press CMD+Shift+P
2. Type 'shell'
3. Choose 'Shell Command: Install 'code' command in PATH' as below:

![Screen Shot 2022-02-01 at 9.26.45 AM.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1643678832008/7o4GsEQXb.png)

Now, you can run code from your terminal.

Happy Coding!
