Search code examples
eclipsewindows-subsystem-for-linux

set up eclipse on windows to work with wsl


Is there a way to set up eclipse to start on windows and connect to a wsl environment?

I want something like https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-wsl for vscode

at the moment I'm using a wsl-version of eclipse (via wslg) but it's very clumky to use.

At worst is there any other ide (apart from vscode...) that offers this kind of solution?


Solution

  • If you are willing to use other IDEs, JetBrains tools support direct integration with WSL.

    I use IntelliJ, PyCharm, and CLion on Windows 11 daily, however, I run, debug, and compile code in WSL. This also works with the communit version of IntelliJ.

    As a suggestion to make IntelliJ easier to use: Use the Eclipse keymap in IntelliJ and change the package display settings. You won't even notice the difference.

    Setting up is extremely easy and the results are excellent.

    https://www.jetbrains.com/help/idea/how-to-use-wsl-development-environment-in-product.html

    End Result with IntelliJ IDEA Community Edition and WSL