Methods as below:
Find a properties file under the installation path, mine is in D:\Program Files\JetBrains\IntelliJ IDEA 2017.3.2\bin After entering the bin directory, find the properties file: idea.properties Open it with Notepad or Editplus and find the following Code snippet:
- # path to IDEA config folder. Make sure you're using forward slashes
- idea.config.path=${user.home}/.IntelliJIdea/config
- # path to IDEA system folder. Make sure you're using forward slashes
- idea.system.path=${user.home}/.IntelliJIdea/system
- # path to user installed plugins folder. Make sure you're using forward slashes
- idea.plugins.path=${user.home}/.IntelliJIdea/config/plugins
It is found that it contains 3 paths idea.config.path and idea.system.path and idea.plugins.path This is the storage path of the set file, then we replace ${user.home} with our custom path. Now, replace such as: D:\Program Files\JetBrains\IntelliJ IDEA 2017.3.2, pay attention to the direction of "/". Modified as follows:
- # path to IDEA config folder. Make sure you're using forward slashes
- idea.config.path=D:/Program Files/JetBrains/IntelliJ IDEA 2017.3.2/.IntelliJIdea/config
- # path to IDEA system folder. Make sure you're using forward slashes
- idea.system.path=D:/Program Files/JetBrains/IntelliJ IDEA 2017.3.2/.IntelliJIdea/system
- # path to user installed plugins folder. Make sure you're using forward slashes
- idea.plugins.path=D:/Program Files/JetBrains/IntelliJ IDEA 2017.3.2/.IntelliJIdea/config/plugins
Then I found that the .IntelliJIdea folder appeared in the D:/Program Files/JetBrains/IntelliJ IDEA 2017.3.2 path, and the modification was successful! In the future, the C drive will not be occupied, and the C drive C:\Users\Administrator\.IntelliJIdea90 folder can be deleted. Go and try it!