This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I'm in the transition from Eclipse to Intellij IDEA, I have some source files on the local file system and I'd like to import them into my project that I have created in IDEA. This can be easily done in Eclipse by importing file system.
I could not figure out how the same could be done in IDEA. I've tried to look through the online documentation but could not find anything.
It works if you drop the file manually to the folder your projects saved (just like drag and drop). And than start IntelliJ, it should find all the new files. It is different to Eclipse, where you must using Import File System (it wont work if you do manual drag and drop). Each solution has positive and negativ sides I think.
Also keep in mind that if you already have existing projects you can create a new project with intellij and simply navigate to your existing project source folder in order for it to import the existing source. This will work when creating multi-module projects as well.
I do this all the time with existing projects that have their own Ant build scripts as well. It works like a charm. Also, the feature that was mentioned above (dropping files into the directory) works with version control systems as well. For example, if you check out files that were added to a project from your version control system they will show up in your project automatically too.
Also note that there is no reason to restart intellij. It will recognize these files while it is running.