Andrew Kim
Andrew Kim's Blog

Andrew Kim's Blog

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

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

Andrew Kim's photo
Andrew Kim
·Feb 1, 2022·

1 min read

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

Now, you can run code from your terminal.

Happy Coding!

 
Share this