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?
Join Stack Overflow to learn, share knowledge, and build your career.
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?
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.)
Registry.get(KEY).setValue(123);
– vikingsteve
Feb 10 '15 at 12:17
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.
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 9 '15 at 18:34