Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I find particular file in IntelliJ IDEA?

I need to find test.xml in IntelliJ IDEA. How can I do that? Keyboard shortcut if any?

like image 811
ShresthaR Avatar asked Dec 03 '12 14:12

ShresthaR


People also ask

How can I see all files in IntelliJ?

By default, IntelliJ IDEA shows all classes, methods, and other elements of the current file. To toggle the elements you want to show, click the corresponding buttons on the Structure tool window toolbar. to show class fields. to have protected class members shown in the tree.

How do I open an existing file in IntelliJ?

Otherwise, from the main menu, select File | New | Project from Existing Sources. In the dialog that opens, select the directory in which your sources, libraries, and other assets are located and click Open. Gradle or Android Gradle: select the necessary build tool and click Finish.


4 Answers

cmd+shift+o (cmd+shift+n in older versions) leads to the file open dialog (on mac).

You can use * chars as wildcards. If there is more than 1 file with the name, you will see the directory of the file for each entry to help you make the choice.

like image 127
hvgotcodes Avatar answered Oct 18 '22 23:10

hvgotcodes


In Windows:

Ctrl + Shift + N

or

Navigate > File...

like image 20
NimChimpsky Avatar answered Oct 18 '22 22:10

NimChimpsky


My IntelliJ version is,

IntelliJ IDEA 2016.2.4

For me, cmd+shift+n doesn't work. But,

command + shift + o

works perfectly for me.

The above shortcut will give you the dialog box to search a file.

For more help,

On the main menu, point to Navigate, and then choose Class, File, or Symbol respectively, or use the following shortcuts:

Class: ⌘O

File (directory): ⇧⌘O

Symbol: ⌥⌘O

Source : JetBrains.com

like image 28
Sathish Kumar Avatar answered Oct 18 '22 22:10

Sathish Kumar


Just hit quickly Shift Shift in a row to reveal a pop-up window to search for everything. You can then start typing to search for files. It's a fuzzy finder, so to match e.g. SomeClassWithALongName.java you can just type: sclwlna (or other letters combination, which has the same order of occurance in the target file name).

like image 23
antonrud Avatar answered Oct 18 '22 22:10

antonrud