How to force IntelliJ to use a different home folder

I have a computer with two hard drives. In the first case, an SSD disk, I have a Windows partition (C), and in the second (D), a raid volume, I install all the programs. I also moved user folders (desktop, documents, downloads, images and videos) to D:/Users/David

.

After installing IntelliJ Idea on D:/Program Filles(x86)

the .IntelliJIdea13 directory appeared on D:/Users/David

. No problem with that, as everything worked well. Then I installed the Scala plugin, created a new SBT project and built it. After that, the .sbt directory used by SBT was in C:/Users/David/.sbt

, but my project's library links point to D:/Users/David/.sbt

. The question is, how can I get IntelliJ Idea or Scala plugin to load libraries on D:/Users/David.sbt

?

+3


source to share


2 answers


Not 100% sure if this is the solution, you can change the HOME folder in Intellij IDEA. Find the folder where the executable is located. On Linux, I have

 ~/applications/idea13/bin  

      

On Windows, you can check the properties of the menu item. There should be an idea.properties file that contains the location of the original idea files folder.



You can find more details here which describe more details:

The location can be changed by editing the following file: IDE_HOME \ Bin \ idea.properties

Follow the comments in the idea.properties file to change the defaults, remember to comment out the lines defining these properties: idea.config.path idea.system.path idea.plugins.path idea.log.path

Alternatively, you can change your project location to D: / Users / David. you should also look inside the project folder, there should be a .idea folder with a library. They contain the location of the libraries used in the project, with their paths.

+5


source


As said, you have to edit idea.properties to set configuration, system, plugins and log paths.

But if you want to change the user.home path, you must edit the idea.exe.vmoptions file . Just add the following at the end of the file:



-Duser.home=your_new_user_home_path

      

If you are using idea64.exe, you should edit the idea64.exe.vmoptions file .

+3


source







All Articles