在 Eclipse 中更改字体大小的键盘快捷键? [英] Keyboard shortcut to change font size in Eclipse?
问题描述
在 Eclipse 中通过首选项更改字体大小相对简单(并在本论坛中多次回答).
It is relatively straightforward to change font sizes in Eclipse through preferences (and answered several times in this forum).
但是我想快速更改字体大小(例如,使用 Ctrl++ 和 Ctrl+- 如在 Linux 终端或 Ctrl+鼠标滚轮 在 MS Office 应用程序中).有没有办法在 Eclipse 中做到这一点?
However I'd like to change font size quickly (e.g., with Ctrl++ and Ctrl+- like in Linux terminal or Ctrl+mouse wheel in MS Office apps). Is there a way to do this in Eclipse?
推荐答案
Eclipse Neon (4.6)
放大
Ctrl++
或
Ctrl+=
Ctrl+-
在此处描述了此功能:
在文本编辑器中,您现在可以使用 放大(Ctrl++ 或 Ctrl+=) 和 缩小 (Ctrl+-) 命令来增大和减小字体大小.与常规 > 外观 > 颜色和字体首选项页面中的更改一样,这些命令在所有相同类型的编辑器中持续更改字体大小.如果编辑器类型的字体配置为使用默认字体,则该默认字体将被放大.
In text editors, you can now use Zoom In (Ctrl++ or Ctrl+=) and Zoom Out (Ctrl+-) commands to increase and decrease the font size. Like a change in the General > Appearance > Colors and Fonts preference page, the commands persistently change the font size in all editors of the same type. If the editor type's font is configured to use a default font, then that default font will be zoomed.
因此,字体大小的更改不仅限于当前文件,字体大小的新值可在此处窗口 > 首选项 > 常规 > 外观 > 颜色和字体.
So, the font size change is not limited to the current file and the new value of the font size is available here Window > Preferences > General > Appearance > Colors and Fonts.
这篇关于在 Eclipse 中更改字体大小的键盘快捷键?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!