Remote development with vscode
I am thinking about save files on a remote server, and develop with vscode on local machine, this is the solution.
I am thinking about save files on a remote server, and develop with vscode on local machine, this is the solution.
Install Remote SSH extension
Search Remote SSH on vscode’s extension page, and install the extension, after install the extension, we can open the remote folder with ssh on vscode.
The default ssh config file for Remote SSH is ~/.ssh/rssh_config
, we can connect to the server by selecting a host, and select a remote folder to open.
Reopen the folder from Remote Explorer
After open the folder, the folder opened with Remote SSH will be listed in Remote Explorer, and just click the open icon, it will open again.
The command will be run on the remote server
If we open the remote folder with Remote SSh extension from vscode, the commands will run on the remote server, for example, I develop a golang application, then the go command should be available on the remote server.