microsoft / vscode-remote-try-python

Python sample project for trying out Dev Containers
https://aka.ms/vscode-remote/containers/getting-started
MIT License
780 stars 1.63k forks source link

File Sync Between Local Computer and Host #13

Closed leimao closed 4 years ago

leimao commented 4 years ago

Hello, I was setting up the VS Code remote development environment on a remote host. It seems that it is working. However, I do have some questions. According to the blog post Advanced Container Configuration, it seems that VS Code will not automatically sync the files between the local computer and the host. When I start the remote working environment, the files and scripts would not show up in the VS Code during development. We would always have to manually copy the files between the local computer and the host after the development is finished. Is my understanding correct? Thank you very much. Best, Lei

Chuxel commented 4 years ago

Thannks for asking! Yes, that is correct - You could look into using rsync to do it if you prefer. https://code.visualstudio.com/docs/remote/troubleshooting#_using-rsync-to-maintain-a-local-copy-of-your-source-code

leimao commented 4 years ago

Thannks for asking! Yes, that is correct - You could look into using rsync to do it if you prefer. https://code.visualstudio.com/docs/remote/troubleshooting#_using-rsync-to-maintain-a-local-copy-of-your-source-code

Thank you for the confirmation @Chuxel. I wish this could be automated by the VS Code Remote extension, if feasible. You have a good day.

Best, Lei