
Step 1: Locate the vs-code executable file.


Step 2 : Edit ~/.bash_profile
or ~/.zshrc
export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
Step 3: Restart your terminal to make change and try to open any files with code command again. That’s all!
Hope this help
You must be logged in to post a comment.