Go to File ... search pattern

I know about the Go To -> File... (Ctrl + Shift + N), but is there a possibility to search by a pattern in the filename?
There is a GotoFile plugin for Eclipse (http://muermann.org/gotofile/) where you can use a sequence of characters from the filename for the search (eg. "HW" would match HelloWorld.html). It is very useful when you do not remember exactly the filename, or you have many files start with the same word. You can very quickly find a file just typing a couple of characters even if you only know parts of the name, and not necessarily the beginning.
Has IntelliJ IDEA such a feature? I miss this very much.

4 comments

When using Goto Class (Ctrl+N) camel Case searches work. Typing HW would bring up a HelloWorld class and a HelpWorker class.

Camel casing also works with GoTo File (Ctrl+Shift+N), HW will find HelloWorld.html as well as helloWorld.html

You also have wild character searches:

*add would find add.png as well as fileAdd.png and add_to_workspace.html.

You can use multiple wild characters:

both add*work and *add*work would find add_to_workspace.html and additionalWorkspace.html. The second one would also find customized_add_to_workspace.html

Hope that helps.

0

Hello Andrea,

Yes, IntelliJ IDEA has exactly that feature. You can type uppercase characters
to do camel-case matching, or you can prefix the pattern with * if you know
just some characters from the middle of the name (for example, *ell to match
HelloWorld.html).

I know about the Go To -> File... (Ctrl + Shift + N), but is there a
possibility to search by a pattern in the filename?

There is a GotoFile plugin for Eclipse (http://muermann.org/gotofile/)
where you can use a sequence of characters from the filename for the
search (eg. "HW" would match HelloWorld.html). It is very useful when
you do not remember exactly the filename, or you have many files start
with the same word. You can very quickly find a file just typing a
couple of characters even if you only know parts of the name, and not
necessarily the beginning.

Has IntelliJ IDEA such a feature? I miss this very much.

---
Original message URL:
http://www.jetbrains.net/devnet/message/5262615#5262615

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

p.s. take a look at the help topic Procedures | Navigating Through the Source Code | Navigating to Class, File or Symbol by Name for some additional tips such as using spaces to find snake cased names such as hello-world and hello_world. As well as some other cool techniques.

0

Please sign in to leave a comment.