26

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
  • 34,284
  • 19
  • 101
  • 142
  • 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

2 Answers2

46

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.)

driftcatcher
  • 1,981
  • 4
  • 26
  • 44
yole
  • 80,603
  • 15
  • 224
  • 177
10

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
  • 479
  • 5
  • 11