IntelliJ IDEA 2019.3 Help

Create a project from existing sources

  1. Launch IntelliJ IDEA.

    If the Welcome screen opens, click Import Project.

    Otherwise, from the main menu, select File | New | Project from Existing Sources.

  2. In the dialog that opens, select the directory in which your sources, libraries, and other assets are located and click Open.

  3. Select the Create project from existing sources option and click Next.

    Creating a project from existing sources

  4. Specify the name and location and select a format for the new project. It's recommended that you use the directory-based format.

    Click Next.

    If you are importing the project to the same directory, the IDE asks you whether you want to overwrite it. If you click Yes, IntelliJ IDEA will overwrite the files in .idea directory and the .iml files, your source files will remain intact.

    A popup warning you that the folder will be overwritten
  5. Select the directories that you want to use as source root directories (folders with your source code) and click Next.

    Importing sources

  6. Select the libraries that you want to add to the new project.

    You can join several selected libraries or archives into a new library by clicking the Merge button or split the selected library into two by clicking the Split button.

    Click Next

    Importing libararies
  7. Review module structure: select the modules that you want to include in your project.

    You can merge several modules into one by clicking the Merge button or split the selected module into two by clicking the Split button.

    Click Next

  8. Specify the SDK that you want to use.

    If the necessary SDK is already defined in IntelliJ IDEA, select it from the list on the left. Otherwise, click the Add button and add a new SDK.

    Click Next.

    Importing SDK
  9. Enable support for the detected frameworks and technologies: select checkboxes next to the necessary items.

    You can also specify how the files-indicators should be grouped: by type (by framework) or by directory (by location).

  10. Click Finish.

Last modified: 26 April 2020