I have been doing something similar for my C Programming class. I have a win10 VM running VS Code Community ( what we're using ) on my laptop and I don't use the VM for anything else.
I would use something like VS Codium, but I wasn't able to set it up just right and couldn't get the correct extension my instructor uses ( that default C/C++ pack from macrohard themselves ) working. Plus, it makes following along so much easier when I have as close to the same set-up as my instructor does, IDE wise.