You can find any item in the project or outside of it by its name. You can search for files, actions, classes, symbols, settings, UI elements, and anything in Git from a single entry point.
Check the following video for a quick look on how to use this feature:
Refer to Find and replace text in a file for more details about searching text within your project.
Search everywhere
-
From the main menu, select or press Shift twice to open the search window. By default, PhpStorm displays the list of recent files. Pressing double Shift again or Alt+N for mnemonics will select the Include non-project items checkbox and the list of search results will extend to non-project related items.
-
Start typing your query. You can use synonyms in your search. For example, typing
toggle presentation modeto search for the presentation mode action will displayEnter Presentation Modein results.PhpStorm lists all of the found results where your query is found. Press Ctrl+Down to jump to the bottom of the list for
more...items or Ctrl+Up to return to the top of the search results.Press Tab to switch the scope of your search to classes, files, symbols, or actions.
You can use the following shortcuts to open the search window with the needed scope right from the start:
-
Ctrl+N: finds a class by name.
-
Ctrl+Shift+N: finds any file or directory by name (supports CamelCase and snake_case).
-
Ctrl+Alt+Shift+N: finds a symbol.
-
Ctrl+Shift+A: finds an action by name. You can find any action even if it doesn’t have a mapped shortcut or appear in the menu. For example, Emacs actions, such as kill rings, sticky selection, or hungry backspace.
-
To narrow down your search, click the Filter icon on the window toolbar and select the appropriate option.
For example, when you search for files, you can exclude some file types from your search.
To see the results of your search in the Find tool window, click the Open in Find tool window icon on the window toolbar. This icon is disabled when you search in the Actions scope.
Search for settings and plugins
You can search for a list of settings, their options,and plugins that you can quickly access, enable, or disable.
-
Press Shift twice to open the search window and type
/. PhpStorm lists the available groups of settings. -
Select the one you need and press Enter.
As a result, PhpStorm gives you quick access to the selected setting and its options.
You can also search for plugins and enable or disable them. Type «/plugins » in the search field, in the list of the search results use ON/OFF control keys to enable or disable the needed plugin.
Search for actions
You can search for actions. For example, you can search for a VCS action and access its dialog.
-
Press Shift twice to open the search window.
-
In the search field, type, for example,
push.PhpStorm displays the Push action in the Actions section together with the Ctrl+Shift+K shortcut, which lets you access the Push dialog.
If the action doesn’t have a shortcut, you can assign it without leaving the Search Everywhere window.
After typing the action name in the search field, select it in the search results, press Alt+Enter and in the dialog that opens specify a new shortcut.
Search for abbreviations
You can assign a short code for the action and use it to search for such action and quickly access it. For example, assign an abbreviation for Color Picker.
-
In the Settings dialog (Ctrl+Alt+S), go to Keymap. From the options on the right select .
-
From the context menu, select Add abbreviation.
-
In the dialog that opens, specify the abbreviation you are going to use, for example, cp and click OK.
-
Press Shift twice to open the search window.
-
When you type cp in the search field, PhpStorm will display the item to which you’ve assigned your abbreviation. Press Enter to access the Color Picker dialog.
Evaluate mathematical expressions
You can quickly type and evaluate simple mathematical expressions.
-
Press Shift twice to open the search window.
-
Enter an expression you want to evaluate, PhpStorm will display the answer in the search results.
You can use basic arithmetic operators —
+,-,*,/, as well as^for power — and basic math functions:sqrt(),sin(),cos(),tan().
Search Git
You can search for Git branches, commits, tags, messages, and so on.
-
Press Shift twice to open the search window.
-
Click the Git tab and enter your search query.
PhpStorm displays the search results in the scope of Git.
Enable text search in Search Everywhere
-
Press Ctrl+Alt+S to open the IDE settings and select .
-
Scroll down to the Search Everywhere section and enable the Show text search results in Search Everywhere.
-
Apply the changes and close the dialog.
Text search results will appear on the new Text tab in the Search Everywhere dialog. They will also be available on the All tab at the bottom of the list.
Last modified: 03 May 2023
-
Eclipse has this feature where you can search any file in your folder. Is there any such feature in PhpStorm?
-
Is there a shortcut for indentation and how can I customize that?
Googled it, but no results.
Pang
9,481146 gold badges81 silver badges122 bronze badges
asked Aug 22, 2013 at 6:16
HIRA THAKURHIRA THAKUR
17.1k14 gold badges54 silver badges86 bronze badges
5
From the Menu of PHPStorm Choose Navigate -> File or use the shortcut ALT+SHIFT+O or CMD+SHIFT+O or CTRL+SHIFT+N (as per the edit). Type the required file name you want to search. Done.
Screenshot for your understanding.
answered Aug 22, 2013 at 6:42
8
In Phpstorm version 7.1.2 you need to go to
Navigate -> File…
or press Ctrl+Shift+N
nealio82
2,6111 gold badge17 silver badges19 bronze badges
answered Feb 27, 2014 at 4:11
Ctrl+Shift+N — search in whole project, that is minus. If you need to search in some specific folder, you can use the «File mask:»
Press Ctrl+Shift+N and in the right top corner you will have this field.
Look at the screenshot.
answered Nov 22, 2017 at 11:45
ExperimenterExperimenter
2,0091 gold badge17 silver badges26 bronze badges
-
On the main menu, choose Edit | Find | Find in Path, or press Ctrl+Shift+F
(see http://www.jetbrains.com/phpstorm/webhelp/finding-and-replacing-text-in-project.html) -
On the main menu, choose Code | Reformat Code, or press Ctrl+Alt+L
(see http://www.jetbrains.com/phpstorm/webhelp/reformatting-source-code.html)
answered Aug 22, 2013 at 6:33
1
Another and easy way would be to press double Shift on Linux or Windows. It would open a search bar and from there select file. More over exact short cut can be found(as told above) by Nagivigation>Find.
answered Feb 8, 2019 at 15:22
Mahad AliMahad Ali
591 silver badge8 bronze badges
PhpStorm – среда разработки с интеллектуальным редактором для PHP, HTML и JavaScript, обеспечивает автодополнение кода, анализирует код на лету предотвращая ошибки.
Сайт разработчика https://www.jetbrains.com/phpstorm/
1
Популярные команды
| Действие | Windows | MacOS |
|---|---|---|
| Вставить / Удалить многострочный комментарий | Ctrl + Shift + / | ⌘ + Shift + / |
| Переформатировать код | Ctrl + Alt + L | ⌘ + ⌥ + L |
| Автоотступ строки | Ctrl + Alt + I | ⌃ + ⌥ + I |
| Развернуть / Свернуть блок кода | Ctrl + + / - | ⌘ + + / - |
| Вычислить выражение | Alt + F8 | ⌥ + F8 |
| Выполнить | Shift + F10 | ⌃ + F10 |
| Отладить | Shift + F9 | ⌃ + F9 |
| Найти / Заменить | Ctrl + F / R | ⌘ + F / R |
| Перейти к классу | Ctrl + N | ⌘ + N |
| Перейти к символу | Ctrl + Alt + Shift + N | ⌘ + ⌥ + N |
| Перейти к строке | Ctrl + G | ⌘ + G |
| Переключиться в полноэкранный режим | Ctrl + Alt + F11 | ⌘ + ⌥ + F11 |
| Развернуть окно редактора | Ctrl + Shift + F12 | ⌘ + Shift + F12 |
2
Редактирование
| Действие | Windows | MacOS |
|---|---|---|
| Вывод возможных вариантов автодополнения | Ctrl + Space | ⌃ + Space |
| Показать меню с доступными действиями и быстрыми решениями | Alt + Enter | ⌥ + Return |
| Информация о параметре | Ctrl + P | ⌘ + P |
| Быстрый поиск по документации | Ctrl + Q | ⌃ + J |
| Краткая информация | Ctrl + Курсор над кодом | ⌘ + Курсор над кодом |
| Сгенерировать код… (getter-ы, setter-ы, конструкторы) | Alt + Insert | ⌘ + N, ⌃ + Return, ⌃ + N |
| Переопределение методов | Ctrl + O | ⌃ + O |
| Реализация методов | Ctrl + I | ⌃ + I |
| Окружить… (if..else, try..catch, for и т.д.) | Ctrl + Alt + T | ⌘ + ⌥ + T |
| Вставить / Удалить строковый комментарий | Ctrl + / | ⌘ + / |
| Вставить / Удалить многострочный комментарий | Ctrl + Shift + / | ⌘ + Shift + / |
| Переформатировать код | Ctrl + Alt + L | ⌘ + ⌥ + L |
| Автоотступ строки | Ctrl + Alt + I | ⌃ + ⌥ + I |
| Продублировать текущую строку или выбранный блок | Ctrl + D | ⌘ + D |
| Удалить строку, на которой установлен курсор | Ctrl + Y | ⌘ + Delete |
| Начать новую строку | Shift + Enter | Shift + Return |
| Выбрать код до конца/начала блока | Ctrl + Shift + ] / [ | ⌥ + Shift + ⌘ + ] / [ |
| Развернуть / Свернуть блок кода | Ctrl + + / - | ⌘ + + / - |
| Закрыть активную вкладку редактора | Ctrl + F4 | ⌘ + W |
3
Отладка
| Действие | Windows | MacOS |
|---|---|---|
| Шаг с обходом | F8 | F8 |
| Шаг с заходом | F7 | F7 |
| Шаг с выходом | Shift + F8 | Shift + F8 |
| Вычислить выражение | Alt + F8 | ⌥ + F8 |
| Установить или снять контрольную точку | Ctrl + F8 | ⌘ + F8 |
| Просмотр контрольных точек | Ctrl + Shift + F8 | ⌘ + Shift + F8 |
4
Выполнение
| Действие | Windows | MacOS |
|---|---|---|
| Выполнить | Shift + F10 | ⌃ + F10 |
| Отладить | Shift + F9 | ⌃ + F9 |
| Открыть командную строку | Ctrl + Shift + X | ⌘ + Shift + X |
5
Поиск и замена
| Действие | Windows | MacOS |
|---|---|---|
| Найти / Заменить | Ctrl + F / R | ⌘ + F / R |
| Найти следующее / предыдущее | F3 / Shift + F3 | ⌘ + G / ⌘ + Shift + G |
| Найти / Заменить в директории | Ctrl + Shift + F / R | ⌘ + Shift + F / R |
6
Навигация
| Действие | Windows | MacOS |
|---|---|---|
| Перейти к классу | Ctrl + N | ⌘ + N |
| Перейти к файлу | Ctrl + Shift + N | ⌘ + Shift + N |
| Перейти к символу | Ctrl + Alt + Shift + N | ⌘ + ⌥ + N |
| Перейти к строке | Ctrl + G | ⌘ + G |
| Перейти в редактор (из окна инструментов) | Esc | Esc |
| Перейти назад / вперед | Ctrl + Alt + ← / → | ⌘ + ⌥ + ← / → |
| Перейти в конец / начало блока | Ctrl + ] / [ | ⌘ + ] / [ |
| Следующая / Предыдущая выделенная ошибка | F2 / Shift + F2 | F2 / Shift + F2 |
| Редактировать файл / Просмотр файла | F4 / Ctrl + Enter | F4 / ⌘ + Enter |
7
Общие команды
| Действие | Windows | MacOS |
|---|---|---|
| Поиск везде | Shift + Shift | Shift + Shift |
| Найти действие | Ctrl + Shift + A | Shift + ⌘ + A |
| Открыть соответствующее окно инструментария | Alt + 0 … Alt + 9 | ⌘ + 0 … ⌘ + 9 |
| Переключиться в полноэкранный режим | Ctrl + Alt + F11 | ⌘ + ⌥ + F11 |
| Развернуть окно редактора | Ctrl + Shift + F12 | ⌘ + Shift + F12 |
Привет
Как найти файл или папку в WebStorm (Он же phpStrom) ?
Не поиск по тексту, а именно файл или папку.
-
Вопрос заданболее трёх лет назад
-
8087 просмотров
Горячих клавиш в IDE PhpStorm и PyCharm гораздо больше, чем в приведенном ниже списке. Здесь я привел только те, которыми пользуюсь сам (* звездочкой выделил наиболее используемые мною горячие клавиши).
Шпаргалка будет обновляться, если начну использовать новые hotkeys.
Для настройки горячих клавиш или добавление собственных сочетаний клавиш перейдите File > Settings > Keymap.
Редактирование
*Ctrl + W — выделение текущего блока. Если нажимать W несколько раз, то будут выделяться родительские блоки по иерархии.
Ctrl + Shift + W — проделывает обратное действие от предыдущего
Ctrl + Y — удаляет строку
*Ctrl + D — дублирует строку
Ctrl + Shift + U — делает выделенный текст или заглавными, или строчными буквами
Ctrl + Delete — удаляет часть от курсора до конца слова
*Ctrl + Alt + L — форматирование кода соответствии с настройками code style.
Ctrl + Shift + V — вставка из истории буфера. Сейчас я пользуюсь *Win + V, стандартным буфером Windows 10 с историей.
*Ctrl + / — закомментировать/раскомментировать текущую строку.
Ctrl + Shift + / — закомментировать/раскомментировать выделенные строки кода.
Ctrl + Shift + J — к текущей строке присоединяет нижнюю.
Ctrl + [ или ] — перемещает курсор в начало или конец блока с кодом, в теле фукции, в теле цикла и т.д.
Ctrl + Shift + ] или [ — выделить код код до конца или до начала блока
*Tab — сделать отступ (табуляцию)
*SHIFT + Tab — убрать отступ
*Ctrl + Alt + Стрелка вверх — перемещает текущую строку вверх.
*Ctrl + Alt + Стрелка вниз — перемещает текущую строку вниз.
Ctrl + Shift + Стрелка вверх — перемещает текущий логический блок вверх (блок if , for и т.д.).
Ctrl + Shift + Стрелка вниз — перемещает текущий логический блок вниз
*Ctrl + Space — выводит возможные варианты автодополнения
Ctrl + курсор мыши над кодом — краткая информация
*Ctrl + клик по названию переменной или метода, или CTRL+B когда курсор установлен на названии, приведет туда, где метод или переменная определены.
*Ctrl + G — перейти к строке по номеру
*Alt + Клик левой кнопкой мышки — мультикурсор, если нужно одновременно несколько курсоров, кликаем мышкой в нужные места, куда нужно их добавить
*Ctrl + Alt + J — обрамление выделенного текста тегом (нужно выбрать первый пункт из всплывающего окошка)
F11 — быстро установить закладку
*Ctrl + F11 — добавить закладку с мнемоникой в текущую строку. В рамках проекта допускается до 10 нумерованных и до 26 буквенных закладок.
Чтобы быстрее перемещаться между нумерованными закладками внутри проекта, нажмите Ctrl+Номер нужной закладки.
Shift + F11 — просмотр всех закладок
Поиск / замена
Двойной Shift — поиск по проекту
*Ctrl + F — поиск в текущем файле
*Ctrl + R — поиск и замена
*Ctrl+Shift+E — вызовет всплывающее окно, в котором показаны последние куски кода в разных файлах, с которыми вы работали
Ctrl + Shift + F — поиск в группе файлов (например в проекте или папке)
Ctrl + Shift + R — поиск и замена в группе файлов
Ctrl + N — найти в каком файле находится класс
*Ctrl + Shift + N — поиск файла по названию
Разное
Ctrl + Alt + S — быстрый доступ к настройкам
*Shift + F6 — переименование файла (выделите в блоке с файлами проекта нужный файл).
Ctrl + Insert — создать новый файл
Шпаргалка
IDE












