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