如何在Intellij Idea Project工具窗口中自动导航到当前类? [英] How to automatically navigate to the current class in Intellij Idea Project Tool Window?

查看:1469
本文介绍了如何在Intellij Idea Project工具窗口中自动导航到当前类?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在IntelliJ IDEA中有一个键盘快捷方式,它具有以下效果:项目工具窗口中的树展开以显示当前打开的类(或文件),并在树中选择此类。

I would like to have a keyboard shortcut in IntelliJ IDEA that has the following effect: the tree in the project tool window expands to show the currently open class (or file), and this class becomes selected in the tree.

这可能吗?

推荐答案

导航(旧版本中查看)| 选择... Alt + F1 ),项目视图输入)。

Navigate (View in older versions)| Select In... (Alt+F1), Project View (Enter).

也可以在项目视图中启用从源自动滚动选项以便自动选择当前文件。

It's also possible to enable Autoscroll from Source option in the Project View so that current file is automatically selected.

这篇关于如何在Intellij Idea Project工具窗口中自动导航到当前类?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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