iterm_open A better iTerm command click to open with vscode tools set at Iterm Preferences / Profiles / Advanced Semantic History , choose Run Command... and set value /usr/go/bin/iterm_open \5 \1:\3 Install go install github.com/hysios/iterm_open