
- Open terminal in intellij install#
- Open terminal in intellij update#
- Open terminal in intellij windows 10#
- Open terminal in intellij code#
The list shows the run/debug configuration templates. In the Run/Debug Configuration dialog, click on the toolbar or press Alt+Insert. Alternatively, press Alt+Shift+F10, then 0.

Create a run configuration for WSLįrom the main menu, select Run | Edit Configurations. The run target feature is supported in the IntelliJ IDEA Ultimate edition only. This might be helpful for the cross-platform development.
Open terminal in intellij code#
You can create or open your project locally on Windows OS with local JDK and then run your compiled code in WSL using run targets. Use WSL to run a project in the Windows file system Switch to the Terminal tool window and type any command to inspect the output. Wsl.exe -d to use a specific Linux distribution Wsl.exe to use the default Linux distribution Specify the command in the Shell path field: To run Terminal in WSL configuration, open project Settings/Preference ( Ctrl+Alt+S) and go to Tools | Terminal. The results of the code execution are displayed in the Run tool window. If you open the run configuration, note that IntelliJ IDEA refers to WSL as local machine. When you run code in your project, it is run in WSL. Also, IntelliJ IDEA automatically switches to Git from WSL for projects that are opened when you use the \\wsl$ path.įor details on working with Git in IntelliJ IDEA, see Git. If Git is not installed on Windows, IntelliJ IDEA searches for Git in WSL and uses it from there.
Open terminal in intellij windows 10#
IntelliJ IDEA supports Git from the Windows Subsystem for Linux 2 (WSL2), which is available in Windows 10 version 2004. 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. In IntelliJ IDEA, you can directly open a project stored in the WSL file system and work with it like with any other project.Ĭlick Open on the Welcome screen or select File | Open from the main menu. Open a project stored in the WSL file system IntelliJ IDEA creates a project located in WSL and you can develop and build your project inside the WSL environment without leaving the IDE. You can type the path to the project location manually or click and choose the folder in the dialog, that opens. The project location for WSL will show the absolute path starting with \\wsl$ to the WSL file system. On the next page, specify the name of your project and project location. On the page that opens, select a type of the project you want to create and from the options on the right, select a project SDK (the JDK configured in WSL). On the welcome screen, click New Project.
Open terminal in intellij install#
Install the needed JDK to the WSL environment using your favorite SDK manager. Create a new project in the WSL file system You also need to add a path variable export M2_HOME=/path/to/maven to the. If you use Maven as your build tool, add a Maven distribution to the WSL environment as well. You can create a project and store it in the WSL environment, open one from the WSL file system, and develop your projects further in WSL.īefore you create or open a Java project, make sure you add the needed JDK version in WSL. Open Windows PowerShell as Administrator and runĮnable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux In this case, you need to do the following:

Upon the first launch, the system may prompt you to enable the Windows optional feature.
Open terminal in intellij update#
In this case, you need to update your WSL distribution. Note that IntelliJ IDEA does not support legacy WSL, which you may have installed before upgrading your system to the build 16299.15 or later of Windows 10. Follow these instructions to switch the distributive. To work with WSL 2, your Windows version should be 10 build 18917 or later. See the official guide Install the Windows Subsystem for Linux for instructions. Configure WSLĭownload and install a WSL distribution (for instance, Ubuntu) from Microsoft Store.įor this step, be sure to use at least Windows 10 or later with the latest “Fall Creators Update” (minimum version 1709, build 16299.15).

You can also use local Windows-based projects and run the applications remotely in WSL with the run targets feature. IntelliJ IDEA lets you create and open projects in the WSL file system, run, and debug applications in the WSL environment. Currently, it supports several Linux distributions, such as Ubuntu, OpenSUSE, and SLES. WSL ( WSL 2) - Windows Subsystem for Linux - is a compatibility layer for running Linux binary executables natively on Windows 10 and later.
