Open a file in your locally running Visual Studio Code instance from arbitrary terminal connections

GitHub release (latest SemVer)

Open a file in your locally running Visual Studio Code instance from arbitrary terminal connections.

Motivation

VS Code supports opening files with the terminal using code /path/to/file. While this is possible in WSL sessions and remote SSH sessions if the integrated terminal is used, it is currently not possible for arbitrary terminal sessions.

Say, you have just SSH’d into a remote server using your favorite terminal and would like to open a webserver config file in your local VS Code instance. So you type code nginx.conf, which doesn’t work in this terminal. If you try to run code nginx.conf in the integrated terminal however, VS Code opens it the

 

 

 

To finish reading, please visit source site