In this article, we mainly explain the functions and usage of some core files in the IntelliJ IDEA installation directory:

As shown in the figure above, we locate IntelliJ IDEA installation directory in the bin directory, bin is short for binary, stands for binary, so the bin directory is used to store binary files. Here, we mainly know the five files circled in red:

  • idea.exeThe file is a 32-bit executable file of IntelliJ IDEA that is sent to the desktop by default after IntelliJ IDEA is installed.
  • idea.exe.vmoptionsThe file is the VM configuration file of the IntelliJ IDEA 32-bit executable;
  • idea.propertiesThe files are some property configuration files of IntelliJ IDEA;
  • idea64.exeThe IntelliJ IDEA 64-bit executable file must be installed on a computer with a 64-bit VERSION of the JDK. It is also recommended for 64-bit systems.
  • idea64.exe.vmoptionsThe file is the VM configuration file of the IntelliJ IDEA 64-bit executable.

Next, let’s look at the above configuration files in detail:

As shown in the figure above, we have opened the idea64.exe.vmoptions configuration file. If we have a 32-bit system, we should open the idea64.exe.vmoptions configuration file. So generally you don’t need to modify it. The principle of modifying THE JVM configuration file is to determine according to the memory of our machine. I suggest that the developers of machines with less than 8GB or static pages do not need to modify it. If we want to develop large Java projects or Android projects with more than 8GB of memory, we suggest modifying it. The following four parameters are often modified. Here, let’s take a 16GB machine as an example:

  • -Xms128m, you can try to set to-Xms512m
  • -Xmx750m, you can try to set to-Xmx1500m
  • -XX:ReservedCodeCacheSize=240m, you can try to set to-XX:ReservedCodeCacheSize=500m
  • -XX:SoftRefLRUPolicyMSPerMB=50, you can try to set to-XX:SoftRefLRUPolicyMSPerMB=100

As an example, the optimal configuration parameters for each machine are different because the configuration of each machine is different, and the best way to make adjustments is to observe and personalize them using tools like JConsole.

As shown in the figure above, we opened the idea.properties configuration file, which does not have 32 or 64 bits. The modification principle is mainly analyzed according to the individual configuration of IntelliJ IDEA. The following four parameters are often modified:

  • idea.config.path=${user.home}/.IntelliJIdea/config, this attribute is mainly used to point to the personalized configuration directory of IntelliJ IDEA. By default, this attribute is annotated, and will be enabled only after opening the annotation. Special attention should be paid to the forward slash direction, which is used here.
  • idea.system.path=${user.home}/.IntelliJIdea/system, this attribute is mainly used to point to the system file directory of IntelliJ IDEA, which is annotated by default and enabled only after opening the annotation. Special attention should be paid to the forward slash direction, which is used here. If we have a lot of projects, the directory will be very large. Still suggest to transfer this directory to another disk;
  • idea.max.intellisense.filesize=2500, this attribute is mainly used to improve the code help when editing large files. IntelliJ IDEA is easy to get stuck when editing large files.
  • idea.cycle.buffer.size=1024This property is primarily used to control the console output cache. If a project has a lot of output enabled, the console will soon be full and cannot automatically output the following content. It is recommended to increase this value or disable it directlyidea.cycle.buffer.size=disabled.

Due to the size of the screen, the content of the configuration file shown above is not fully displayed, we just need to slide the mouse to see the above we often modify the configuration information!

Download the latest IntelliJ IDEA now >>>


For more information about licensing and trial of JAVA IDE related products, please [contact customer service]


Huidu control | to provide software technology overall solution

Gathered in the world more than three thousand excellent controls, software products, to provide industry-leading consulting, training and development services enterprises QQ: 800018081 | tel: 023-68661681