When comparing MacPorts vs IntelliJ IDEA, the Slant community recommends IntelliJ IDEA for most people. In the question“What are the best power user tools for macOS?” IntelliJ IDEA is ranked 46th while MacPorts is ranked 52nd. The most important reason people chose IntelliJ IDEA is:
Uses a fast indexing technique to provide contextual hints (auto-completion, available object members, import suggestions). On-the-fly code analysis to detect errors and propose refactorization.
Ranked in these QuestionsQuestion Ranking
Pro Provides a consistent experience across OS X versions
MacPorts eschews Apple-supplied libraries and links sources against its own making sure that the experience is the same regardless of what OS X version is used.
Pro Nice variants system
MacPorts has a variants system that allows customizing builds with author provided options.
Pro Generally very up to date
MacPorts generally gets new software soon after it's available. This way users will not have to worry if their software is up to date.
Pro Fast and smart contextual assistance
Uses a fast indexing technique to provide contextual hints (auto-completion, available object members, import suggestions).
On-the-fly code analysis to detect errors and propose refactorization.
Pro Lots of plugins
Many plugins are available for almost any task a developer may need to cover. Plugins are developed by Jetbrains themselves or by 3rd parties through the SDK available for writing them.
Pro Smart refactorings
IDEA places an emphasis in safe refactoring, offering a variety of features to make this possible for a variety of languages.
These features include safe delete, type migration and replacing method code duplicates.
Pro Stable and robust
Nothing like Eclipse, you don't have to restart projects from start just because they were corrupted by the IDE!
Also loads much faster than Eclipse.
Pro Android support, JavaEE support, ...
A very complete development environment support.
Pro Intuitive and slick UI
IDEA has a clean, intuitive interface with some customization available (such as the Darcula theme).
Pro Support for many languages
IntelliJ supports many languages besides Java, some of these are: golang, Scala, Clojure, Groovy, Bash, etc...
Pro Free version available
There is a free community edition (open source) and an ultimate edition, which you can compare here.
The ultimate edition is available for free for one year for students but must be registered through an .edu e-mail account.
Pro Clear and detailed documentation
The documentation is exhaustive, easy to navigate, and clearly worded.
Con Downloads unneeded libraries duplicating functionality already provided by Apple's libraries
As MacPorts eschews Apple-supplied libraries and links sources against its own a large duplication of functionality across MacPorts and Apple libraries can be found.
Con Bad at limiting dependencies
MacPorts has a habit of pulling very specific versions of dependencies for each package. It downloads different version of already existing dependencies even in cases where the existing dependency version would have worked seamlessly.
Con Bugs not solved
They are more interested in adding new features or issuing new versions than solving bugs.
Con Built with closed source components
The version with full features is not opensource. Parts of the code are under apache licence though.
Con «standard» hotkeys behave differently
Seems like hotkeys assignment in Idea have no logical consistency.
Like «F3» is usually next match, «Ctrl+W» - close tab, etc — they map to some different action by default.
There is a good effort in making the IDE friendly for immigrants from other products: there are options to use hotkeys from Eclipse, and even emacs. But these mappings are very incomplete. And help pages do not take this remapping into account, rather mentioning the standard hotkeys.
So, immigrants are doomed to using mouse and context menus (which are rather big and complex).