112

Is it possible to define a shortcut to increase/decrease size of code in PhpStorm, like what you can do in Notepad++ with CTRL+Mouse Wheel?

3
  • 8
    Ctrl+MouseWheel works in PhpStorm as well: Settings | Editor | Change font size (Zoom) with Ctrl + Mouse Wheel
    – LazyOne
    Commented Sep 22, 2012 at 18:43
  • The way you set up everything is a bit strange, I had a hard time changing the font and setting up the size of it (being shortsighted is not funny) But the black colors are a welcome addition. Commented May 19, 2013 at 13:39
  • ...and the official "reset" command is to hit CTRL+SHIFT+A and type "reset zoom".
    – KlaymenDK
    Commented Mar 8, 2017 at 14:09

8 Answers 8

194

Enable CTRL+Mouse Wheel: Settings -> Editor -> Change font size (Zoom) with Ctrl+Mouse Wheel (check).

enter image description here


Specify exact font size: Settings -> Editor -> Colors & Fonts -> Font.

enter image description here

8
  • 16
    For some reason it's disabled
    – Dmitry
    Commented Sep 28, 2013 at 5:29
  • 28
    @dVaffection you have to click Save As.. to be able to modify the parameters. Commented Oct 15, 2013 at 14:44
  • 11
    @ymakux, go Settings => Editor => General => Enable Change font size (Zoom) with Control+Mouse Wheel
    – Abduhafiz
    Commented Aug 31, 2015 at 13:38
  • 3
    Thanks, already found it. Now using Sublime Text an Notepad++ - much simpler and faster
    – ymakux
    Commented Aug 31, 2015 at 18:12
  • 3
    Why on earth is this not enabled by default? What were the devs thinking?!
    – Black
    Commented Feb 28, 2017 at 14:43
25

I am able to change my PHP Storm (version 8.0.3 or later) Fonts by

  1. Go to File and then click Settings.
  2. Form Left Side Menu, Select Editor --> General Tab
  3. Check this box under Mouse section Change font size (zoom) with Ctrl_Mouse Wheel (see below pic).

enter image description here

30 Second Demo Here

0
20

in new version in this address file > setting > Editor > general check this item Change font size (Zoom) with Ctrl+Mouse Wheel

1
  • yup for php storm 2019 this is the way
    – Nassim
    Commented Sep 21, 2019 at 7:38
9

Also you can use View → Enter Presentation Mode.

Default font size for this mode is 24.

You can change it here: Settings → Appearance → Presentation Mode → Font size

2
  • Ideal for thos not having a mouse :-) Commented Oct 6, 2016 at 12:22
  • One more way to switch to the presentation mode: View → Quick Switch Scheme → View Mode → Enter Presentation Mode. (Good choice for the shortcut funs)
    – gekh
    Commented Feb 8, 2018 at 18:29
7

The pre-defined schemes are not editable. To change colors and fonts settings in such a scheme, create its copy. So to change font size select any scheme of your choice. Save the "scheme" as a copy with a name like "scheme 2". Now the default font size will be editable.

0
7

In MacOS, you should navigate to the PhpStorm -> Preferences -> Editor -> General screen and check/uncheck the "Change font size (Zoom) with Command + Mouse Wheel" checkbox. I unchecked because I don't like it but maybe you do.

Moreover, you can use the finder field in the top left corner of the same PhpStorm -> Preferences dialog. Type the word "size" in this field and you will see a couple of items on the right hand side of the dialog. There are the Editor Actions -> Decrease Font Size and Editor Actions -> Increase Font Size options.

Right click each of them and choose "Add Keyboard Shortcut". Finally, press the Ctrl and numerical plus in case of Increase and Ctrl and numerical minus in case of Decrease and press OK (if you have numerical part of your keyboard).

4

In PhpStorm 2020.2.1 go to :

Settings -> Editor-> Font

enter image description here

That's it

-1

Switching beetween Editors and zooming text during presentations or so could be complicated. If you used to do it like in notepad++ than maybe this helps if you use win:

^NumpadAdd::
    send,^{WheelUp}
return

the complete script you could find here: https://gist.github.com/sl5net/7170280#file-gistfile1-txt

Not the answer you're looking for? Browse other questions tagged or ask your own question.