PHPStorm browse file by name and path using fuzzy search

I am switching from Vim to PHPStorm. In Vim, I had a plugin called CtrlP, which could be used to search for files with my own path using fuzzy logic.

For example, searching for the string " defaorderwid "

Offers the file "themes / defa ult / views / order / wid get.php"

(Sublime also has this feature (Go To All), available via Ctrl + P. )

How can I do something like this in PHPStorm? I know Ctrl + Shift + N search, but it searches only file names without paths.

This is important for me, because in the current project I have many files named "widget.php" in different folders.

+8
intellij-idea webstorm phpstorm
source share
4 answers

Press Shift , Shift (twice). Then enter widget.php and add the folder or parts of it. It works for me.

They call it "Search Everywhere" or "Double Shift."

If you want to use abbreviations, you can CamelCase or either CamelHumps or SnakeCase do a search or use wildcards ( * ). Read here .

+15
source share

if you have files like:

 /buildings/users/create.blade.php /rooms/users/create.blade.php /parks/users/create.blade.php 

you can search as follows:

 1. double press SHIFT 2. type: buil/creat (first letters of folder and file) 3. PHPStorm will find: buildings/users/create.blade.php 
+4
source share

If you are looking for a file in a specific path, use Ctrl + Shift + N

whith: themes / d / vs // widget Or t / d / v / o / wid , etc.

will display the widget.php file in the themes / default / views / order

+1
source share

If you are looking for a file (or directory), you can use:

Windows: Ctrl + Shift + N
macOS: Cmd + Shift + O

(Double-clicking Shift also works, but it also searches for classes, characters, and actions, and this is slower.)

Despite what you say, it searches for fragments of directories and file names - but only if they are separated by a slash:

enter image description here

The developers asked JetBrains to do this without the need for a "/". Register your wish so that it is added here: IDEA-112841

+1
source share

All Articles