Executable file not found in $PATH

I downloaded Phase Editor (PE) v. 3.10.2 on imac 2011.

Problem: Visual Studio does not open when:
right tab > Open Visual Studio Code

It show alert:
exec: “code”: executable file not found in $ PATH

¿¿ How can I access via PE to another code editor (example, Sublime) ??


I added in command palette:
‘shell command’


  • I restarted VSCode
  • Now, I’m in my PE (Phaser Editor 3.10) project folder
  • When I type ‘code’ in Terminal this happens:

An attempt is made to open a new VSCode window, but after a few seconds it closes. Terminal doesn’t show me any other messages. Only that of:

“MyMacName: nameFolder myuser$”

  • Return to PE: bars tab > Open VSCode

  • Again the alert appears:
    exec: “code”: executable file not found in $ PATH

For now, I now edit the files from the Sublime editor.

Did you use the Install ‘code’ command in PATH option?
If that doesn’t work, use the alternative:

cat << EOF >> ~/.bash_profile
# Add Visual Studio Code (code)
export PATH="\$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"

And check your .bash_profile to see if the change is there.
Use echo $PATH to see if vscode is there.
Or just test it. Start ‘code’ anywhere but from its bin directory.

1 Like