问题
I know how to change the setting : https://stackoverflow.com/a/11129039/390330
But I want a more live solution like I get with the mouse: Ctrl+Mouse Wheel shortcut. Except I need it to be a keyboard shortcut (e.g in browsers there is Ctrl + + / Ctrl + -). Is there such a keystroke / or can one be set
回答1:
Nope. Currently only Ctrl+Mouse Wheel
Corresponding ticket: http://youtrack.jetbrains.com/issue/IDEA-84884
UPDATE: It has been implemented now (2 months later after writing this answer):
Settings / Preferences | Keymap
- Type
font
in that screen search box - Assign custom shortcuts to
Increase
andDecrease
actions
回答2:
You can do the following .. verified in Android Studio 2.0
- Go to Preferences
- Go to Keymap
- In the search field, type
font
- There you can double click on Increase and Decrease, and "add" a custom key binding.
I used
Decrease: ctrl -
Increase: ctrl +
来源:https://stackoverflow.com/questions/18029587/increase-decrease-code-font-size-keyboard-shortcut