When I try to open VSCode from the command line with code ., I get the error ./MacOS/Electron: No such file or directory. How can I fix this?
code .
./MacOS/Electron: No such file or directory
Open the file located at /Applications/Visual Studio Code.app/Contents/Resources/app/bin/code and change python to /usr/bin/python.
/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code
python
/usr/bin/python
Credit to joaomoreno for the solution.