Increase / Decrease code font size keyboard shortcut

非 Y 不嫁゛ 提交于 2019-12-19 09:28:07

问题


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

  1. Settings / Preferences | Keymap
  2. Type font in that screen search box
  3. Assign custom shortcuts to Increase and Decrease actions




回答2:


You can do the following .. verified in Android Studio 2.0

  1. Go to Preferences
  2. Go to Keymap
  3. In the search field, type font
  4. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!