Reputation: 69
I am using 2 computers to code in VS Code, but I want to sync a specific file when I edit it in both computers. Do you have any extensions, or servers that allows it to sync?
I tried looking in Google, some said try FTP, and some said use "Settings Sync". (I installed Settings Sync, but I don't really know if it can sync my files.)
Upvotes: 4
Views: 27390
Reputation: 172
As of mid 2022 there is also the option to use the build-in "cloud changes" feature. This stores uncommitted changes to the cloud, using your logged in account and allows you to retrieve them on another machine.
To use it:
I use this regularly myself when I'm working on two amchines and don't want to commit an interim state to github.
(Thanks to pawelgrzybek for copy-pastable instructions.
Upvotes: 1
Reputation: 1
if your doing web development i'd rather just upload the code, to the web and download it to the all the pc's.
Upvotes: -1
Reputation: 1095
Option 1
Use vscode remote development.
Select main machine which would host all the files and use SSH to access the files from the other machine.
Option 2
Rsync is a standard linux tool which can be used.
Use can use vscode rsync extension for syncing the files from one machine into the other.
Upvotes: 3
Reputation: 668
I think that the closest experience to what you have in mind that you can get currently on VSCode is Visual Studio Live Share. This is an official extensions suite that lets you share your screen with multiple hosts, it also shares most of your current VSCode editor features (like intellisense) and can be enabled with voice and text chats. I would also suggest to set up a git repository for the files you are going to work with, so that hard copies of all your files will be avaialble to all your users.
Upvotes: 1