I have tried but not with the oculus yet. You have two methods: either you remote VR into your desktop (Using tools such as Virtual Desktop), either you host an IDE in a browser and then just use your browser (VSCode you can host using coder.com self hosted).
My opinions are: It gets uncomfortable fairly quickly, I didn't want to use it more than an hour. The DPI is much lower than my 2K desktop monitor. It gets hot under the VR headset. In most conditions I prefer a Desktop or even a laptop. I think one place where it might be cool is the airplane since even laptops are uncomfortable.