DEV Community

Morris John
Morris John

Posted on

I'm trying to write the same code in two different computers using VS Code

I'm trying to work on my code every chance I've got. Is it possible to work on the same code using VsCode with two different computers?
If it's possible, what extension would I need?

Top comments (6)

dianaramirez16 profile image
Diana Ramirez

google drive might help if you have multiple files.
just zip it up and upload it then when you switch computers, download it and extract it to vscode.
you can do something similar with which can save a copy of your code online, so you don't even have to use vs code, but you can also copy and paste into there and just navigate to the repl url when you switch computers and copy and paste into vscode onto the second computer
lastly is github which is preferred by most i think, but has the highest learning curb. the benefits being that github has become kind of the go-to for people to showcase their coding projects to employers, list it on your resume, and contribute to open source projects that you hold dear. so it might just be worth it to learn git commands and set up your environment on both of your computers

justtrey profile image
just-trey • Edited
  1. Setup a GotHub account if you don't have one. You can host private repos so no one can see your code. Just check in and check out as needed on whatever computer you are using.
  2. Download code insiders. it has a feature that allows you to sync your settings across devices via your gitHub account.
patarapolw profile image
Pacharapol Withayasakpunt
sakaruk profile image
Sakar Khatiwada

Maybe the Live share feature might help ?

weppami profile image

git ..?

blindfish3 profile image
Ben Calder

I.e. version control. Git just happens to be the most popular these days.
Morris John - See the tutorial if you're not familiar with the concept yet.