如何在IntelliJ IDEA 13中搜索或导航到Java文件类型? [英] How to search for or navigate to a Java file type in IntelliJ IDEA 13?

查看:350
本文介绍了如何在IntelliJ IDEA 13中搜索或导航到Java文件类型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在IntelliJ IDEA中导航或搜索特定文件类型?

How do I navigate to or search for a particular file type in IntelliJ IDEA?

例如,我需要搜索项目中的所有抽象类,项目中的所有 interfaces 或所有枚举我项目中的文件.

For example, I need to search for all abstract classes in my project, or all the interfaces in my project, or all the enum files in my project.

是否存在诸如 Ctrl + N 之类的快捷方式?

Is there a shortcut such as Ctrl+N?

谢谢您的帮助.

推荐答案

您没有提到您是否拥有最终版本.如果是这样,您可以使用Intellij的结构搜索功能.您可以使用<CTRL>-<Shift>-S或导航至Edit->Find->Search Structurally来调用它.

You didn't mention whether you have the ultimate edition or not. If so, you can use Intellij's structural search feature. You can invoke it with <CTRL>-<Shift>-S or by navigating to Edit->Find->Search Structurally.

要查找所有接口,请使用以下模板:interface $Interface$ {}. $Interface$部分是一个变量,可以用正则表达式进行参数化,因此可以缩小搜索范围.相同的原则适用于抽象类和枚举.

To find all interfaces, use this template: interface $Interface$ {}. The $Interface$ part is a variable and can be parameterized with a regular expression so you can narrow down your search. The same principle applies for abstract classes and enums.

结构搜索是一项强大的功能,请务必查看现有的预定义模板.

Structural search is a powerful feature, make sure to take a look at the existing predefined templates.

这篇关于如何在IntelliJ IDEA 13中搜索或导航到Java文件类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆