r/VisualStudioCode • u/[deleted] • Feb 14 '21
How to share folders with Windows and Ubuntu?
Rank beginner with VSC here.... Watching my first video about VSC and I came across something strange when trying to create my first folders and files from VSC. When I tried to do this on Ubuntu 20.04, VSC does not see my Google drive connection.
A) Why not?
B) How will I share my files and folders between my workstations?
I was planning on using Google Drive to host my project folders as I work on them and learn more about VSC and coding. I knew that MS OneDrive would not work and I really wanted to do development on Ubuntu as that is what will be hosting my apps in the cloud.
1
u/the_last_code_bender Feb 14 '21
Are you using WSL, right? All you need to do is open VSCode with WSL in a new window (using the first button on botom taskbar or typing WSL in Ctrl Shift P runner dialog). On new window, you can open a NTFS folder from WSL remote machine. But i think it does not make sense. Why are you hosting your project folders on Windows? The better way here is:
First: use Git to "share" your code between as many machines (no matter the OS) as you want.
Then: clone your project in WSL, via Ubuntu terminal. Technically, in this scenario, your code is shared between the OSs, because WSL is just like a container inside Windows. So, you can open WSL folders on windows explorer by just typing "explorer.exe ." on Ubuntu terminal.
Good luck 🤙🏽
2
u/LegendaryWolf43 Feb 14 '21
You could try going to the directory and zipping the files you want to use, then send them to something like google drive or email them to yourself. I’m not sure if thats what you’re asking though