Как изменить масштаб phpstorm

Learn about actions to navigate inside PhpStorm editor, search for caret, lines, and blocks of code; edit code, configure editor tabs, shortcuts and editor setting.

The PhpStorm editor is the main part of the IDE that you use to create, read and modify code.

The editor consists of the following areas:

Editor details

  1. The scrollbar shows errors and warnings in the current file.

  2. Breadcrumbs help you navigate inside the code in the current file.

  3. The gutter shows line numbers and annotations.

  4. Tabs show the names of the currently opened files.


You can use various shortcuts to switch between the editor and different tool windows, change the editor size, switch focus, or return to the original layout.

Maximize editor pane

  • In the editor, press Ctrl+Shift+F12. PhpStorm hides all windows except the active editor.

    You can maximize a split screen as well. In this case the active screen is maximized and other screens are moved aside.

Switch the focus from a window to the editor

  • Press Escape. PhpStorm moves the focus from any window to the active editor.

Return to the editor from the command-line terminal

  • Press Alt+F12. PhpStorm closes the terminal window.

  • If you need to keep the terminal window open when you switch back to the active editor, press Ctrl+Tab.

Return to the default layout

  • Press Shift+F12.

  • To save the current layout as the default, from the main menu select . You can use the same shortcut Shift+F12 to restore the saved layout.

Jump to the last active window

  • Press F12.

Use the switcher for navigation

  1. To jump between the opened files and tool windows with the switcher, press Ctrl+Tab.

  2. Keep Ctrl pressed to leave the switcher popup open.

  3. Press Tab to move between elements. Press Backspace to remove the selected file from the list and close it in the editor.

Change the IDE appearance

You can switch between schemes, keymaps, or viewing modes.

  1. Press Ctrl+`.

  2. In the Switch menu, select the option you need and press Enter. Use the same shortcut Ctrl+` to undo your changes.

You can also find and adjust the color scheme settings including the high contrast color scheme for people with eyesight deficiency on the page and the keymap settings on the page of the Settings dialog (Ctrl+Alt+S).

Jump to the navigation bar

  • Press Alt+Home.

Editor tabs

You can close, hide, and detach editor tabs. Every time you open a file for editing, a tab with its name is added next to the active editor tab.

To configure the settings for editor tabs, use the page of the Settings dialog (Ctrl+Alt+S). Alternatively, right-click a tab and select Configure Editor Tabs from the list of options.

Open or close tabs

  • To close all opened tabs, select from the main menu.

  • To close all inactive tabs, press Alt and click the Close button on the active tab. In this case, only the active tab stays open.

  • To close all inactive tabs except the active one and the pinned tabs, right-click any tab and select Close Other Tabs.

  • To close only the active tab, press Ctrl+F4. You can also click the mouse’s wheel button anywhere on a tab to close it.

  • To reopen the closed tab, right-click any tab, and from the context menu, select Reopen Closed Tab.

  • To open a new tab at the end of the already opened one, select the Open new tabs at the end in the tab settings.

Copy path or filename

  1. Right-click the tab.

  2. From the list that opens, select Copy Path/Reference.

  3. From the list that opens, select your copy option.

    Copy path

    PhpStorm copies the item to the clipboard, and you can paste it (Ctrl+V) wherever you need.

Move, remove, or sort tabs

  • To move or remove the the Close button icon on a tab, in the Settings dialog (Ctrl+Alt+S), go to and select the appropriate option in the Close button position field.

  • To place the editor tabs in a different part of the editor frame or hide the tabs, right-click a tab and select Configure Editor Tabs to open the Editor Tabs settings. In the Appearance section, in the Tab placement list, select the appropriate option.

  • To sort the editor tabs alphabetically, right-click a tab and select Configure Editor Tabs to open the Editor Tabs settings. In the Tab order section, select Sort tabs alphabetically.

Pin or unpin a tab

You can pin an active tab in the editor so that it will stay open when the tab limit is reached or when you use the Close Other Tabs command.

  • To pin or unpin an active tab, right-click it and select Pin Tab or Unpin Tab from the context menu.

  • To assign a keyboard shortcut for the Pin Tab action, in the Settings dialog (Ctrl+Alt+S), go to , find the Pin Active Tab action, right-click it, select Add Keyboard Shortcut, and press the key combination you want to use.

Detach a tab

When you detach a tab, the tab opens in a separated window and the window becomes reserved for the detached tab.

If you try to detach another tab from the main frame, it will be opened in the window with already detached tab. You can position the newly detached tab anywhere you’d like such as left, right, bottom, or top. To that frame you can also drag different tool windows.

  • Drag the tab you need outside of the main window and drag the tab back to attach it.

  • To detach an active tab, press Shift+F4.

  • You can also use Alt+mouse for the same action.

Switch between tabs

  • To move between tabs, press Alt+Right or Alt+Left.

  • You can also switch between recently viewed tabs or files.

    In the editor, press Ctrl+Tab. Keep pressing Ctrl for the Switcher window to stay open. Use Tab to switch between tabs and other files.

Assign a shortcut for the opened tab

  1. In the Settings dialog (Ctrl+Alt+S), go to .

  2. In the list of directories, click the directory and from the list of tabs, select the one for which you need to add a shortcut. The limit of tabs to which you can assign shortcuts is 9.

    Add shortcuts for tabs

Change the default tab limit

PhpStorm limits number of tabs that you can open in the editor simultaneously (the default tab limit is 10).

  1. In the Settings dialog (Ctrl+Alt+S), go to .

  2. In the Tab closing policy section, adjust the settings according to your preferences and click OK.

Open files in the preview tab

The preview tab allows you to view files in a single tab one by one without opening each file in a new tab. This is helpful if you need to look through several files without exceeding the tab limit.

  1. In the Project tool window Alt+1, click the Show Options Menu button and select Enable Preview Tab.

    You can also enable the preview tab in .

  2. In the Project tool window, select a file that is not already open in any other tab.

    The name of the file is written in italic to indicate the preview mode. Any other file that you select will replace the previous one in the preview tab.

    Start editing the file or double-click the file’s tab to exit the preview mode and convert the preview tab into a regular tab.

    The preview tab

    Note that when the preview tab is enabled, the Open Files with Single Click option is ignored. Double-click a file to open it in a regular tab.

Hide editor tabs if there is no more space

  1. In the Settings dialog (Ctrl+Alt+S), go to .

  2. Select the Hide tabs if there is no space option. Extra tabs will be placed in the list located in the upper right part of the editor.

Change the font size in tabs

  1. In the Settings dialog (Ctrl+Alt+S), go to .

  2. In the Size field, specify the font size and click OK to save the changes.

    Keep in mind that the font size will change not only for tabs, but for tool windows as well.

Split screen

PhpStorm offers various actions that you can invoke from main or context menu, editor, or the project tool window to split the editor screen.

  • In the editor, right-click the desired editor tab and select how you want to split the editor window (Split Right or ). PhpStorm creates a split view of the editor and places it according to your selection.

  • As an alternative, from the main menu, select and the Split and Move Right or Split and Move Down option.

  • You can drag a tab vertically or horizontally in order to split the editor, and drag the tab back to unsplit the screen.

    Drag-and-drop tab

  • You can open a file in the editor in the right split.

    In the Project tool window, right-click a file and select Open in Right Split from the context menu. PhpStorm will open a file in the split on the right of the editor.

    Open in Right Split

    If there are two splits and focus is in the left split, the file will be opened in the existing right split. If the focus is in the right split, the file will be opened in the next right split.

  • You can move files between split screens. Right-click the needed file tab in the editor and from the context menu select Move To Opposite Group or Open In Opposite Group.

  • You can close all the open tool windows at once and thus enlarge the split screens. Position the caret in an editor tab and press Ctrl+Shift+F12 or just double-click the tab. PhpStorm hides all the open tool windows so all the space is shared by split screens.

  • You can split the editor equally multiple times with the Equalize proportions in nested splits option.

  • To unsplit the screen, from the context menu, select Unsplit or Unsplit All to unsplit all the split frames.

Move the split screen

  1. Place the caret inside the desired split frame.

  2. From the main menu, select .

  3. From the list of options, select one of the following options:

    • Stretch Editor to Top

    • Stretch Editor to Left

    • Stretch Editor to Bottom

    • Stretch Editor to Right

    You can assign a shortcut to each option and use a keyboard to stretch the split frame.

    To move between the split frames which you’ve created, from the main menu, select . From the list of options select Goto Next Splitter Alt+Tab or Goto Previous Splitter Alt+Shift+Tab respectively.


You can configure and change font, its size and font ligatures. You can apply the font size change for only one tab in the editor or increase and decrease the font size globally.

Configure the font and font ligatures

  1. In the Settings dialog (Ctrl+Alt+S), go to .

  2. Select the needed font from the list, specify its size and the line heights. You can also enable ligatures and configure typography settings.

  3. Click OK to save the changes.

Change the font size in the editor

  1. In the Settings dialog (Ctrl+Alt+S), go to (Mouse Control section).

  2. Select the Change font size with Ctrl+Mouse Wheel in option.

  3. Return to the editor, press and hold Ctrl, and using the mouse wheel, adjust the font size.

Increase or decrease font size for all the editors

  • In the editor, press Alt+Shift+. to increase the font size globally or press Alt+Shift+Comma to decrease it.

    PhpStorm displays a zoom indicator on the bottom of the editor that shows the current font size and the default one to which you can reset the current font size.

  • The zoom indicator is enabled by default. To disable it, open the Settings dialog (Ctrl+Alt+S), go to , and clear the Show zoom indicator option in the Editor section.

Useful editor configurations

You can use the Settings dialog (Ctrl+Alt+S) to customize the editor’s behavior.

Check the following popular configurations:

Configure code formatting

  1. In the Settings dialog (Ctrl+Alt+S), go to .

  2. From the list of languages select the appropriate one and on the language page, configure settings for tabs and indents, spaces, wrapping and braces, hard and soft margins, and so on.

Configure the color scheme settings for different languages and frameworks

  1. In the Settings dialog (Ctrl+Alt+S), go to .

  2. Open the Color Scheme node and select the needed language or framework. You can also select the General option from the node’s list to configure the color scheme settings for general items such as code, editor, errors and warnings, popups and hints, search results, and so on.

Configure code completion options

  • In the Settings dialog (Ctrl+Alt+S), go to . Here you can configure the case sensitive completion, auto-display options, code sorting, and so on.

Configure the caret placement

  • In the Settings dialog (Ctrl+Alt+S), go to . In the Virtual Space section, you can configure the caret placement options.

    Select the Allow placement of caret after end of line option to place the caret at the next line in the same position as the end of the previous line. If this option is cleared, the caret at the next line is placed at the end of the actual line.

    Select the Allow placement of caret inside tabs option to help you move the caret up or down inside the file while keeping it in the same position.

Configure the behavior of trailing spaces on save

  • In the Settings dialog (Ctrl+Alt+S), go to . In the Other section, you can configure options for trailing spaces.

    For example, when you save your code either manually or automatically and want to preserve trailing spaces on the caret line regardless of what option is selected in the Strip trailing spaces on save list, select the Always keep trailing spaces on caret line option.

Configure the editor appearance options

  • In the Settings dialog (Ctrl+Alt+S), go to .

    For example, you can configure showing the hard wrap guide, or showing parameter hints.

Manage the appearance for long lines

  1. In the Settings dialog (Ctrl+Alt+S), go to .

  2. In the Soft Wraps section, specify the appropriate options.

    For example, you can specify file types to which you want to apply soft wraps. It might be helpful when you write documentation in markdown files.

Configure smart keys

You can configure a certain behavior for different basic editor actions depending on the language you use.

  • In the Settings dialog (Ctrl+Alt+S), go to .

    For example, you can select the Jump outside closing bracket/quote with Tab option to enable navigation outside the closing brackets or quotes with Tab when you type your code.

Last modified: 23 January 2023

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?

Nikola K.'s user avatar

Nikola K.

7,03313 gold badges29 silver badges39 bronze badges

asked Sep 22, 2012 at 18:37

Handsome Nerd's user avatar

Handsome NerdHandsome Nerd

16.7k21 gold badges93 silver badges169 bronze badges


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

answered Sep 22, 2012 at 19:46

Nikola K.'s user avatar


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

answered Oct 16, 2018 at 10:57

Muhammad Faizan Khan's user avatar


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

answered Jun 1, 2016 at 5:55

hamidreza's user avatar


1911 silver badge3 bronze badges


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

answered Jul 17, 2014 at 10:26

German Khokhlov's user avatar


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.

answered Aug 21, 2014 at 4:20

dtouch's user avatar


711 silver badge1 bronze badge


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

answered Oct 18, 2016 at 2:22

Csongor Halmai's user avatar

In PhpStorm 2020.2.1 go to :

Settings -> Editor-> Font

enter image description here

That’s it

answered Oct 12, 2020 at 20:10

Anwar Benhamada's user avatar

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:


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

R R's user avatar


2,9952 gold badges24 silver badges42 bronze badges

answered Oct 26, 2013 at 14:55

SL5net's user avatar


2,1544 gold badges24 silver badges41 bronze badges

Можно ли определить ярлык для увеличения/уменьшения размера кода в PhpStorm, например, что вы можете сделать в Notepad++ с помощью CTRL+Колесико мыши?

8 ответы

Включите CTRL+Колесико мыши: Настройки -> Редактор -> Изменить размер шрифта (Масштаб) с помощью Ctrl+Колесо мыши (галочка).

Введите описание изображения здесь

Укажите точный размер шрифта: Настройки -> Редактор -> Цвета и шрифты -> Шрифт.

Введите описание изображения здесь

Создан 23 сен.

в новой версии в этом адресном файле > настройка > Редактор > общие отметьте этот пункт Изменить размер шрифта (Масштаб) с помощью Ctrl+Колесо мыши

Создан 01 июн.

я смогу изменить мой PHP Storm (версия 8.0.3 или позже) Шрифты

  1. Перейдите в «Файл» и нажмите «Настройки».
  2. Сформируйте левое боковое меню, выберите Editor -> General Tab
  3. Установите этот флажок под Mouse раздел Change font size (zoom) with Ctrl_Mouse Wheel (см. рисунок ниже).

Введите описание изображения здесь

30-секундная демонстрация здесь

Создан 11 июн.

Также вы можете использовать Просмотр → Войти в режим презентации.

Размер шрифта по умолчанию для этого режима — 24.

Вы можете изменить его здесь: Настройки → Внешний вид → Режим презентации → Размер шрифта

Создан 08 фев.

Предопределенные схемы не редактируются. Чтобы изменить настройки цветов и шрифтов в такой схеме, создайте ее копию. Таким образом, чтобы изменить размер шрифта, выберите любую схему по вашему выбору. Сохраните «схему» как копию с именем типа «схема 2». Теперь размер шрифта по умолчанию можно будет редактировать.

ответ дан 21 авг.

В MacOS вы должны перейти к экрану PhpStorm -> Настройки -> Редактор -> Общие и установить/снять флажок «Изменить размер шрифта (Масштаб) с помощью Command + колесико мыши». Я снял флажок, потому что мне это не нравится, но, возможно, вам нравится.

Кроме того, вы можете использовать поле поиска в верхнем левом углу того же диалогового окна PhpStorm -> Preferences. Введите слово «размер» в это поле, и вы увидите несколько элементов в правой части диалогового окна. Существуют опции Действия редактора -> Уменьшить размер шрифта и Действия редактора -> Увеличить размер шрифта.

Щелкните правой кнопкой мыши каждый из них и выберите «Добавить сочетание клавиш». Наконец, нажмите Ctrl и числовой плюс в случае увеличения и Ctrl и числовой минус в случае уменьшения и нажмите OK (если у вас есть цифровая часть клавиатуры).

ответ дан 18 окт ’16, 03:10

В PhpStorm 2020.2.1 перейдите по ссылке:

Настройки -> Редактор-> Шрифт

Введите описание изображения здесь

Вот именно

ответ дан 12 окт ’20, 21:10

Переключение между редакторами и масштабирование текста во время презентаций может быть сложным. Если вы делали это, как в блокноте ++, возможно, это поможет, если вы используете win:


полный скрипт вы можете найти здесь: https://gist.github.com/sl5net/7170280#file-gistfile1-txt

Создан 20 ноя.

Не тот ответ, который вы ищете? Просмотрите другие вопросы с метками


or задайте свой вопрос.

Понравилась статья? Поделить с друзьями: