Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

How does the intellij idea work in wsl?


Asked by Anaya Wright on Dec 05, 2021 FAQ



IntelliJ IDEA creates a project located in WSL and you can develop and build your project inside the WSL environment without leaving the IDE. Open a project stored in the WSL file system In IntelliJ IDEA, you can directly open a project stored in the WSL file system and work with it like with any other project.
In fact,
In the dialog that opens, select the folder in the WSL file system that contains the project to open, or type the path to the \\wsl$ project location manually. IntelliJ IDEA supports Git from the Windows Subsystem for Linux 2 (WSL2), which is available in Windows 10 version 2004.
Besides, IntelliJ IDEA lets you create and open projects in the WSL file system, run, and debug applications in the WSL environment. You can also use local Windows-based projects and run the applications remotely in WSL with the run targets feature. Download and install a WSL distribution (for instance, Ubuntu) from Microsoft Store.
Next,
My favorite IDE is IntelliJ IDEA (Community Edition) and for now, this IDE does not have the remote development features like VS Code Remote Development extension, therefore, I use an X Server ( VcXsrv) on Windows 10 to see WSL 2 GUI applications like IntelliJ Idea in Windows.
And,
If your Maven or Gradle projects are stored in WSL 2 (\\wsl$\<Linux distribution name>\<path to project>), you can now open them in IntelliJ IDEA and work with them in the WSL 2 environment. When you run a request from the HTTP client, the IDE opens the Services tool window.