How to configure IntelliJ products WITHOUT editing files in bin?
G

2

6

I'd like to set some specific options in idea.vmoptions and idea.properties for IntelliJ IDEA 14, but I don't have access to those files in C:\Program Files\... (yes, that's Windows, don't troll ;)

Is there a folder in %UserProfile% or an environment variable I could set to read those files (both vmoptions and properties!) from elsewhere?

Please don't suggest to copy the whole IDEA folder elsewhere, there's a reason why I can't access it. I would be interested in a Linux solution too, the same would most likely work on Windows.

My Research

For Mac there're specific instructions at Increasing Memory Heap, but for Linux and Windows it's just filename which are trivial to find out anyway.

I also found IntelliJ IDEA files locations, but it says can be modified in IDEA_HOME\bin\idea.properties which doesn't help since I can't access that file, but want to change properties in it.

Update: Simple Answer

Create IDEA_PROPERTIES and IDEA_VM_OPTIONS environment variables and point them to the files you want, restart IDE, done.

Also see documentation for more (and maybe report that it lacks any mention of IDEA_PROPERTIES).

Giamo answered 22/4, 2015 at 11:22 Comment(0)
L
0

IDEA Properties

From this article, your options are:

  • Set $IDEA_PROPERTIES or your IDE's equivalent ($PYCHARM_PROPERTIES) to a filepath.
  • Create ~\idea.properties.
  • In your IDE, Help -> Edit Custom Properties, or manually create the file at the appropriate location.

You only need to overwrite the specific things you want to change; the other layers will act as defaults.

The order in which IDE will read idea.properties files is as follows:

  • Environment variable (%IDE%_PROPERTIES)
  • HOME\idea.properties (where HOME is the user's home directory on the system)
  • IDE_HOME\bin\idea.properties
  • Default IDE configuration directory

Unlike .vmoptions file handling, idea.properties file with the higher priority doesn't undefine or discard variables already defined in the file location with lower priority.

VM Settings

From this article, your options are:

  • Set $IDEA_VM_OPTIONS or your IDE's equivalent ($PYCHARM_VM_OPTIONS) to a filepath.
  • In your IDE, Help -> Edit Custom VM Options.

This does not layer, so if you have one of these defined it overrides the others. See the article for precedence order.

Liam answered 17/10, 2024 at 19:41 Comment(0)
H
2

You can use %USERPROFILE%\.IntelliJIdea14\idea%BITS%.exe.vmoptions on Windows as custom options file. I tried it and it works. Another way that I haven't tried, but I think should work, is to copy idea.bat and edit it to use the file you need.

Hedwig answered 22/4, 2015 at 14:40 Comment(3)
Thank you! I didn't notice the .bat file which tells me all the answers, that is to use IDEA_PROPERTIES and IDEA_VM_OPTIONS environment variables to specify the full path of those files.Giamo
After finding the right answer it puzzles me that searching for these yield no official documentation... nor any honorable mentions, I'm sad.Giamo
@twisterrob The documentation has been updated! :) jetbrains.com/idea/help/tuning-intellij-idea.htmlHedwig
L
0

IDEA Properties

From this article, your options are:

  • Set $IDEA_PROPERTIES or your IDE's equivalent ($PYCHARM_PROPERTIES) to a filepath.
  • Create ~\idea.properties.
  • In your IDE, Help -> Edit Custom Properties, or manually create the file at the appropriate location.

You only need to overwrite the specific things you want to change; the other layers will act as defaults.

The order in which IDE will read idea.properties files is as follows:

  • Environment variable (%IDE%_PROPERTIES)
  • HOME\idea.properties (where HOME is the user's home directory on the system)
  • IDE_HOME\bin\idea.properties
  • Default IDE configuration directory

Unlike .vmoptions file handling, idea.properties file with the higher priority doesn't undefine or discard variables already defined in the file location with lower priority.

VM Settings

From this article, your options are:

  • Set $IDEA_VM_OPTIONS or your IDE's equivalent ($PYCHARM_VM_OPTIONS) to a filepath.
  • In your IDE, Help -> Edit Custom VM Options.

This does not layer, so if you have one of these defined it overrides the others. See the article for precedence order.

Liam answered 17/10, 2024 at 19:41 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.