WSL2 + Devcontainer Setup. Bad performance, unclear documentation
Hello,
I'm working with IntelliJ IDEA on Windows, WSL2, v2025.3.5 currently. I have a hard time understanding the currently recommended setup for working with Dev containers in such an environment as there are not so clear information about the correct settings. Precisely, I am unsure about how to open the WSL2 project and start the devcontainer.
Do we open the project from Windows Explorer directly and start a devcontainer via this? Or do we want the “Remote Development Backend” in the WSL2 instead and open the Devcontainer from there?
In settings, we can choose “Open devcontainer projects natively” and “Open WSL projects natively”. What's the best and recommended setting here?
When having both checked, I have super bad performance, initial analysis of the project takes ages.
When only checking the devcontainer setting, the project seems to be quicker, also the paths in settings for things like gradle installation /gradle home appear linux-style instead of this weird \\docker\abcd1234\blabla.
Does someone know anything, are there best-practices?
请先登录再写评论。
Hello, Vali. I've already answered you here, but if you have any further questions, please feel free to ask.