45

How can I override a value that is used internally in IntelliJ, for example this expression:

Registry.intValue("a.b.c")

I can access the registry Registry.getInstance() but it doesn't allow updating any key/value pairs.

Any tips?

vikingsteve
  • 38,481
  • 23
  • 112
  • 156
  • 1
    I want to override `Registry.intValue("ide.max.recent.projects")`. I can't find it in any files in `.IntelliJ14` or subfolders, therefore I conclude it comes from static configuration and would like to override it at runtime. (And yes, I routinely work in more than 25 projects) – vikingsteve Feb 09 '15 at 18:34

3 Answers3

75

Press Ctrl-Alt-Shift-/ and select "Registry" from the menu that appears.

(If that keyboard shortcut is not working for you, use your configured keyboard shortcut for Find Action. On Mac by default it is Shift++A, on Windows it is Shift+Ctrl+A (docs). Then type "Registry" and click or hit enter.)

floer32
  • 2,190
  • 4
  • 29
  • 50
yole
  • 92,896
  • 20
  • 260
  • 197
9

If you are using OS X, you can open the registry by typing 'cmd + shift + A'. Type 'registry' and change the value of the option you're looking for. In this source you can see an example.

Saulo Aguiar
  • 509
  • 6
  • 12
1

You can see the registry entries you have modified here:

(Modify the version to your installed IDE version)

IntelliJ:

/Users/YourUser/Library/Application Support/JetBrains/IdeaIC2022.1/options/ide.general.xml

Android Studio:

/Users/YourUser/Library/Application Support/Google/AndroidStudio2021.3/options/ide.general.xml

It'll look something like this:

<application>
    <component name="Registry">
        <entry key="unknown.sdk.auto" value="1337" />            
    </component>
    <component name="StatusBar">
        <option name="widgets">
            <map>
                <entry key="Memory" value="true" />                    
            </map>
        </option>
    </component>        
</application>

And in the IDE:

enter image description here

Blundell
  • 75,855
  • 30
  • 208
  • 233