Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to import existing files into IntelliJ 10 IDE?

I have used Eclipse before. I changed to IntelliJ. Now I am wondering how to import existing files into IntelliJ 10 IDE. In Eclipse I was used to just drag the directory into the src folder, but I cannot do it here.

like image 624
Josh Morrison Avatar asked Feb 19 '11 23:02

Josh Morrison


People also ask

How do I import everything into IntelliJ?

You can change the settings to import entire packages instead. In the Settings/Preferences dialog ( Ctrl+Alt+S ), select Editor | Code Style | Java | Imports. Clear the Use single class import checkbox, and apply the changes.

How do I import an external library into IntelliJ?

From the main menu, select File | Project Structure | Project Settings | Modules. Select the module for which you want to add a library and click Dependencies. button and select Library. In the dialog that opens, select a project or a global library that you want to add to the module.


1 Answers

IDEA doesn't have such feature, you either set up a project on top of the existing sources or you copy files to the existing project externally, using Finder or your favorite file manager.

like image 136
CrazyCoder Avatar answered Sep 21 '22 15:09

CrazyCoder