Visual Studio Code lets you “install” the
code command to open files in VSCode from the terminal… But how about doing it ourselves?
alias as always to the rescue. You just need to add the following to your
For VS Code:
alias code="open -a Visual\ Studio\ Code"
alias code="open -a <APPLICATION_NAME>"