I looked at the microsoft docs but i am not good enough on terminal.
It says run this command:
sudo ln -s /path/to/vscode/Code /usr/local/bin/code
I customized it like this. But i don't understand what should be the second file path. First one is path to app as i understand.
sudo ln -s /opt/visual-studio-code/Code /usr/local/bin/code
I get this error when i run it:
ln: failed to create symbolic link ‘/usr/local/bin/code’: File exists
sudo ln -s /path/to/vscode/Code /usr/local/bin/code
) first, then it wouldn't work. Try runningcode
in Terminal and seeing what it brings up. If nothing happens, then runsudo rm /usr/local/bin/code && sudo ln -s /opt/visual-studio-code/Code /usr/local/bin/code
. This should re-create the symbolic link and you should be able to launch Visual Studio Code just fine.