Dealing with multiple interconnected projects at once
已回答
I'm a new convert to IntelliJ … coming over from 20+ years working in Eclipse (and variants).
I'm trying to figure out the best way to deal with multiple java projects at once.
With Eclipse, I created a workspace and imported multiple gradle projects into it and was able to navigate through the source without much trouble. When doing a remote debug, the debugger would always find the appropriate source as long as I had the configuration set with the appropriate classpath.
In IntelliJ, it appears that I can only have a single gradle project open at once in a single instance.
Is there a better way to handle this kind of scenario (both debug and straight code navigation)?
Thanks very much!
David
请先登录再写评论。
Unfortunately not (and as soon as I say this, someone will come forward with an intellij hack to prove I'm wrong), but itj works with single projects. This was one of the major differences I had to acclimate myself to when moving from netbeans years ago. Working with related projects requires opening each separately.
Takes some getting used, but I feel it limits the clutter and (imo) is a much better ide then eclipse.
Hi David Gibbs
You can utilize the concept of modules in a multimodule project (applies to Maven too) by attaching other projects as separate content roots to your current project. Modules can be loaded and unloaded.
You can also check out this article. It aims to help you transition from Eclipse to IntelliJ IDEA relatively painlessly.