本文介绍了如何在IntelliJ IDEA项目工具窗口中自动导航到当前类?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在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
)|选择位置...
( + ),项目视图().
Navigate
(View
in older versions)| Select In...
(+), Project View ().
还可以在 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项目工具窗口中自动导航到当前类?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!