A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
Create a symbolic folder link (NOT A SYMBOLIC FILE LINK). Here is what I did. You don't have to hack any files. Super easy.
Open Windows Powershell NOT AS AN ADMINISTRATOR, or you link may not be visible.
Enter this command:
mklink /j "C:\Users\YOURUSERNAME\THENAMEOFONEDRIVE" "C:\ROOTFOLDERNAME"
This works for me. I can now store my code in Onedrive and in Visual Studio, I save the files in C:\ODIA (that's the folder I used). This creates a "junction" folder which is just a link from one folder to the other.
Hope that works for you.