Rename .app and using the new name with open -a
Solution 1:
You can make a symbolic link:
cd /Applications
ln -s Visual\ Studio\ Code.app vscode
You can then open it with:
open -a /Applications/vscode
Solution 2:
When I installed VSCode on my machine it installed something for the command line. If I type the word Code
, from the command line, VSCode starts up.
There is a command in the Command Palette that will do the link for you. Go to command palette, under the view menu, and there is a command that says Shell Command: Install 'code' command in PATH.
Click on this and it sets up a link from Applications/vscode to /usr/local/bin. After that, you can just type code to run the program.