如何在intellij 13中搜索/导航/到java文件类型 [英] How to search/navigate for/to a java file type in intellij 13

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

问题描述

如何导航或搜索Intellij中的特定文件类型?

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

例如,我需要在项目中搜索所有抽象类,或者全部我的项目中的接口或我项目中的所有Enum文件。

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 或导航到编辑 - >查找 - >结构搜索<来调用它/ code>。

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 13中搜索/导航/到java文件类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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