Home  >  Article  >  php教程  >  PhpStorm usage notes (3)

PhpStorm usage notes (3)

黄舟
黄舟Original
2016-12-26 10:18:491602browse

Warning: in_array() expects parameter 2 to be array, null given in D:wwwrootipp8wwwrootcontenttemplatesHyPurpleecho_log.php on line 50

Fast font scaling

PhpStorm provides fast font scaling Function, the specific usage method is: in the activated editing area, press and hold the Ctrl key, and then roll the mouse wheel to zoom in and out of the font.

If you find that this operation is ineffective, then you should consider whether it is not turned on in the settings.

The method to enable or disable this function is as follows:

Open the Setting dialog box and click Editor -> General. At this point you can see that there is a sub-option in the Mouse option: Change font size (Zoom) with Ctrl+Mouse Wheel. If you need this function, check it, otherwise uncheck it.

There is another thing that needs attention here. If this function is enabled, how to quickly reset the font size after enlarging or reducing the font is a problem that cannot be ignored. Since the current PhpStorm does not provide a reference ratio value for enlargement or reduction, it is impossible to accurately determine whether the current font size is the initial value.

Hy369 has been troubled by this before and didn’t know what to do. After reading the manual this time, I discovered that there is no need to scroll the mouse wheel to visually check whether it has returned to human size. The operation method of font scaling reset is as follows:

Call up the behavior properties dialog box through Ctrl + Shift + A, enter Reset font size in the input box, and this item will also be listed in the alternative list. command and then hit the Enter key to immediately reset the font scaling settings.

The reason why this reset operation is performed through the behavior properties dialog box is because so far, PhpStorm does not provide a default shortcut key for this action. Since no default shortcut keys are provided, it means that shortcut keys can be set.

Here, it involves the issue of configuring shortcut keys again, so let’s provide a method of customizing shortcut keys.

Customized shortcut keys

PhpStorm, as a powerful IDE, naturally has the function of customizing shortcut keys. The specific setting method is as follows:

Open the Setting dialog box and click on Keymap. At this point, you can see that the dialog box has listed all the command lists, and the existing shortcut keys for each command are also attached to the command.

Enter keywords in the search input box to search for instructions. There is a button on the right side of the input box. If you hover the mouse over the button, it will prompt Find actions by Shortcut. This is a very practical function. After clicking the button, you can use the shortcut key to query which command the shortcut key is currently assigned to.

Right-click on the command, and a drop-down dialog box will pop up. The dialog box provides options for adding shortcut keys and removing shortcut keys. You can check and study it yourself.

The above is the content of PhpStorm usage memo (3). For more related content, please pay attention to the PHP Chinese website (www.php.cn)!


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:PhpStorm usage notes (2)Next article:PhpStorm usage notes (2)