Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ: how to switch color schema with a shortcut

I have two different color schemas for the editors (Solarized Dark and Light) and I would like to be able to switch with a shortcut. Is this possible?

like image 933
spakendralo man Avatar asked Dec 15 '22 03:12

spakendralo man


1 Answers

You can use Ctrl+` or ` (that's the back quote - top left of keyboard) to open a popup menu that allows you to switch color schema, code style schema, keymap or look and feel. Note that the numbers in the popup can be used make a selection. You can remap its shortcut in Settings > [IDE Settings] > Keymap > Main Menu > View > Quick Switch Schema.

Natively this will take 3 key sequences:

  1. Ctrl+` (open menu)
  2. 1 (select "switch color schema"
  3. # (select scheme)

If this is something you do a lot and want to do make it even more efficient (although I do not think the above is too complex), you can record a macro (Edit > Macro) to make the change. You can then map it to a shortcut in the Keymap settings. You'd have to record two macros, one for each of the two schemes.

like image 104
Javaru Avatar answered Dec 27 '22 21:12

Javaru