How can I link some src to my project like Eclipse?

I have some java source in some folders(not in any project),and I want to link them to my project instead of copy them to my project folder.
I can link any number of src folder into my project in Eclipse easily,but I can not find how can I do it in IDEA,Is there some suggest?
Thanks!

1 comment
Comment actions Permalink

in module configuration you need to "Add Content Root" pointing it to yor external src folder and then set it as Sources (usually it will be set automatically as Sources)

hint: exclude there any folders you don't want IDEA to index, like "logs" or "data" - if this folders are quite big you'll get significant improve in IDEA project indexing speed

1

Please sign in to leave a comment.