That's the reason behind using a remote interpreter, unless there is some other benefit to running your IDE in the same OS as your code I'm missing. Your IDE stays on whatever system you want to use, your code gets executed in your VM.
99% of the time I'm working natively in Fedora when I'm working on code these days (unless I have to do .Net or other MS stuff, Windows goes in a VM for that) - but before I could make that switch I ran PyCharm/IntelliJ/etc. on Windows and just had a headless Fedora or CentOS VM that PyCharm ran my code in.
99% of the time I'm working natively in Fedora when I'm working on code these days (unless I have to do .Net or other MS stuff, Windows goes in a VM for that) - but before I could make that switch I ran PyCharm/IntelliJ/etc. on Windows and just had a headless Fedora or CentOS VM that PyCharm ran my code in.