there's a reasonable chance PyCharm (and, as the values imply, IJ) would run portably, too
I use those overrides when trying to isolate my copy of IJ for reporting bugs, but I don't recall if they work _exactly_ the same for PyCharm, and for sure I haven't confirmed that setting them prevents writing into other directories
---
While I haven't personally tried it, I bet by setting "IDEA_PROPERTIES=%CD%\portable.properties" and then:
there's a reasonable chance PyCharm (and, as the values imply, IJ) would run portably, tooI use those overrides when trying to isolate my copy of IJ for reporting bugs, but I don't recall if they work _exactly_ the same for PyCharm, and for sure I haven't confirmed that setting them prevents writing into other directories