Eclipse 中的 IntelliJ 等效项是什么,在包资源管理器视图中显示文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/16614085/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What is the IntelliJ equivalent from Eclipse, show file in the package explorer view
提问by Berlin Brown
I am more familiar in Eclipse and need the IntelliJ equivalent. In Eclipse, I could open a java class, right click, show file in package explorer and it would highlight the file on the left. What is the IntelliJ equivalent.
我更熟悉 Eclipse 并且需要 IntelliJ 等效项。在 Eclipse 中,我可以打开一个 java 类,右键单击,在包资源管理器中显示文件,它会突出显示左侧的文件。什么是 IntelliJ 等价物。
回答by Joachim Isaksson
You can highlight a file you have open in the editor in a number of views using the Select In...
menu that can be opened using ALT-F1
when the editor window has the cursor.
您可以Select In...
使用ALT-F1
当编辑器窗口具有光标时可以打开的菜单在多个视图中突出显示您在编辑器中打开的文件。
The most usual ones (Project/Packages) are found under the menu opened by ALT-F1
and then right arrow
.
最常见的(项目/包)可以在由ALT-F1
和打开的菜单下找到right arrow
。
回答by maba
You can turn on Autoscroll from sourcein Project Tool Windowso that the file/class to the left is scrolled to as soon as you open a file for edit.
您可以在“项目工具”窗口中打开“从源代码自动滚动”,以便在打开文件进行编辑时立即滚动到左侧的文件/类。
If this option is on, IntelliJ IDEA automatically navigates from a file in the editor to the corresponding node (file, class, field, method, etc.) in the Project tool window. Note that selecting this option makes the Scroll to Source button unavailable.
如果启用此选项,IntelliJ IDEA 会自动从编辑器中的文件导航到项目工具窗口中的相应节点(文件、类、字段、方法等)。请注意,选择此选项会使滚动到源按钮不可用。
回答by Robert Gleis
回答by Fundhor
It is called "select in project view".
它被称为“在项目视图中选择”。
You'd better edit your keymap ! (alt+F1 right arrow is not very efficient...)
你最好编辑你的键盘映射!(alt+F1 右箭头不是很有效...)
file > settings > keymap > select in project view : alt+E for example
文件 > 设置 > 键盘映射 > 在项目视图中选择:例如 alt+E
回答by Krishna
You can press Alt-Home, it goes to the navigation bar.
您可以按 Alt-Home,它会转到导航栏。
Go to or select the package by pressing left arrow.
按向左箭头转到或选择包。
Press F4 now to see it in the project view.
现在按 F4 在项目视图中查看它。