Is it possible to use the “code” command in SSH’ed terminal to open VS Code on local machine with SSH extension?
I found much better & simple answer thanks to this post. Simply create new script file named code with below contents & put file under any folder from $PATH. (echo $PATH to see what folders you can use) #! /usr/bin/env zsh local max_retry=10 for i in {1..$max_retry} do local script=$(echo ~/.vscode-server/bin/*/bin/remote-cli/code(*oc[$i]N)) if [[ -z ${script} … Read more