Reputation: 447
I have many java files on one directory and I want to use it in my Intellij project. But I don't want to copy the java files to my project each time when I start a new project.
I know I can use reference in Visual Studio and Xcode. I'm wondering whether I can do it in Intellij(14 CE)
Upvotes: 3
Views: 967
Reputation: 361
Project Structure -> Modules -> Add Content Root -> (select directory containing external source files).
IntelliJ should detect the content as a Source Folder. If it doesn't detect it correctly, you can select it in the right-hand-side of Project Structure, and Mark as: (Sources).
Upvotes: 4