本文介绍了如何在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.
这可能吗?
推荐答案
导航
(旧版本中查看
)| 选择...
( + ),项目视图()。
Navigate
(View
in older versions)| Select In...
(+), Project View ().
也可以在项目视图中启用从源自动滚动选项
以便自动选择当前文件。
It's also possible to enable Autoscroll from Source option in the Project View
so that current file is automatically selected.
这篇关于如何在Intellij Idea Project工具窗口中自动导航到当前类?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!