Install IntelliJ IDEA on Mac
This article gives the steps to install Jetbrains IntelliJ IDEA on macOS.
IntelliJ IDEA now comes with openJDK bundled.
- Run installer
User File Paths
If you're like me you may have several projects open simultaneously and find IntelliJ will use up the default 512-768 and crash. You can change the memory settings from the CLI.
- Copy the default rubymine.vmoptions file to your personal Preferences directory. Do not edit the files in the application, it will violate the application signature.
sudo cp /Applications/IntelliJ\ IDEA.app//Contents/bin/idea.vmoptions ~/Library/Preferences/IntelliJIdea2016.3/
- Change Ownership of ridea.vmoptions file
sudo chown username:staff ~/Library/Preferences/IntelliJIdea2016.3/idea.vmoptions
- Edit the idea.vmoptions file
- Change the Xmx value to what you want.
- 1 or 2 GB should be good, but to really know I recommend enabling Show memory indicator in settings to see how much memory you're actually using.
- Restart IntelliJ Idea
-Xms128m -Xmx2048m -XX:ReservedCodeCacheSize=240m -XX:+UseCompressedOops
Force IntelliJ to Use JDK
If you want the IDE to run a specific (maybe newer) installed JDK instead of it's bundled version. This is usually not necessary.
- Create a idea.jdk file in your app preferences folder
- Add path to JDK
- Write and Quit
- Restart IntelliJ