Open in Visual Studio Code Open Automator Quick Action Set “Service receives selected” to files or folders in any application Add a Run Shell Script action Set the script action to the following for f in "$@"; do open -a 'Visual Studio Code' "$@"