Use Cloud Changes in VS Code to sync uncommitted edits between two computers
Released in June 2022 VS Code “Edit Sessions”, later on in November 2022 renamed to “Cloud Changes”, is a little-known feature that allows you to sync your uncommitted changes between multiple instances of Visual Studio Code, either on the web or on the desktop. Hosting a git repository on GitHub or Azure Repos is the sole requirement. No need for “work in progress” commits only to pick up the work on another machine.
- Enable the feature on both machines by selecting “Cloud Changes: Turn on Cloud Changes” from the Command Palette Command + Shift + P (macOS) / Ctrl + Shift + P (Windows/Linux). Alternatively, enable it under accounts settings UI.
- Run “Cloud Changes: Store Working Changes in Cloud” from Command Palette on the first machine.
- Run “Cloud Changes: Resume Latest Changes from Cloud” from Command Palette on the second machine.
It is cool, isn’t it? Did you know about this feature? Stay curious 😘