Alternatively, you can create a project by opening an Eclipse project or workspace in IntelliJ IDEA. In comparison with importing, this way of creating a project is quicker, however, you are offered less options for configuring the resulting project.
IntelliJ IDEA can keep the module files and the corresponding Eclipse project files synchronized. This is useful when a development team uses both IntelliJ IDEA and Eclipse.
See also, IntelliJ IDEA vs Eclipse Terminology.
- Do one of the following:
In the dialog that opens, select
the necessary Eclipse project or workspace directory, or
the corresponding .project or .classpath
As a result, the Import Project or the Import Module wizard opens. (See Import Project or Module Wizard.)
- On the first page of the wizard, select Import project from external model or Import module from external model, then select Eclipse and click Next. (This page is not shown if IntelliJ IDEA has guessed that you are importing an Eclipse project or workspace.)
On the next page of the wizard, specify:
- The directory that contains the Eclipse project or workspace to be imported.
- Where the IntelliJ IDEA project and module files should be created.
- The IntelliJ IDEA project format.
- Whether the IntelliJ IDEA module file or files should be kept synchronized with the corresponding Eclipse project file or files.
- Whether and how test sources are to be looked for.
- If you are importing more than one Eclipse project (e.g. an Eclipse workspace), select the Eclipse projects you want to import on the next page of the wizard, and click Next.
- If suggested, specify the project SDK and click Next.
- The next page of the wizard shows the frameworks and technologies detected in your Eclipse project or projects. Select the ones that you want to be enabled and click Finish.
- If no project is currently open in IntelliJ IDEA, click Open Project on the Welcome screen. Otherwise, select Open from the File menu.
- In the dialog that opens, select the necessary Eclipse workspace or project folder, or the corresponding .project or .classpath file. Click OK.
If the following dialog is displayed:
Click Yes to create and open the project. Click No to open the file in the editor.