在Intellij IDEA中按名称查找包裹 [英] Find a package by name in Intellij IDEA

查看:417
本文介绍了在Intellij IDEA中按名称查找包裹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道java包的名称,我想在项目中找到它。如何在 Intellij IDEA 中快速完成?有没有键盘快捷键?

I know the name of java package and I want to find it in project. How to do it fast in Intellij IDEA? Is there any keyboard shortcut?

推荐答案

打开项目视图工具窗口,切换到套餐查看模式,点击齿轮图标,启用 Flattern Packages 选项,停用显示模块选项。

Open Project View tool window, switch to the Packages view mode, click on the gear icon, enable Flattern Packages option, disable Show Modules option.

开始输入包裹名称以激活速度搜索

Start typing the package name to activate the speed search.

另一种选择是使用导航 | ,键入 your.package。* ,选择一个类,按 Alt + Home 对于导航栏弹出窗口,使用箭头选择包,按 F4 (如果导航栏未浮动,但在视图菜单中启用,则可能无效)。

Another option is to use Navigate | Class, type your.package.*, select some class, press Alt+Home for the navigation bar popup, use arrows to select the package, press F4 (may not work if navigation bar is not floating, but enabled in the View menu instead).

这篇关于在Intellij IDEA中按名称查找包裹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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