如何在 IntelliJ IDEA 中找到特定的文件?

我需要在 IntelliJ IDEA 中找到 test.xml,我该怎么做呢? 是否有快捷键?

81871 次浏览

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.

In Windows:

Ctrl + Shift + N

or

Navigate > File...

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

Well, this is very frequently asked a question by users who switch OS. I recently switched from Windows to MAC.

To open file shortcuts go as follows

Windows : ctrl+shift+n MAC : command + shift + o

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

command + E

It Will Open Recent Files

enter image description here