Intellij 2021.1 has the feature called run targets, which enable to run your code on a docker environment or on a remote server.
It also bring WSL support.
https://blog.jetbrains.com/idea/2021/03/intellij-idea-2021-1...
https://youtrack.jetbrains.com/issue/IDEA-226455#focus=Comme...