如何在Project Explorer中选择Eclipse时自动打开/预览文件

stu*_*eek 8 eclipse

有没有办法让Eclipse自动打开/预览文件,因为我在Project Explorer中选择它们?我知道我可以双击,但我想在探索项目时快速向上/向下箭头.

我基本上在寻找像Mac Finder的Quick Look或Windows 7 Explorer的预览窗格.IntelliJ IDEA也具有此功能,并将其称为"Autoscroll to Source".

Eclipse具有"链接到编辑器",但它与我想要的相反(IntelliJ IDEA称之为"从源自动滚动") - 它从编辑器更新Project Explorer.我希望编辑器从Project Explorer更新.

mis*_*off 16

Window -> Preferences -> General -> Open Mode (single click)
Run Code Online (Sandbox Code Playgroud)

此选项在新编辑器选项卡中打开新的源文件.要禁用此功能,并仅保留一个活动编辑器选项卡,请使用:

Window -> Preferences -> General -> Editors -> 
Select checkbox 'Close editors automatically' -> 
Set 'Number of opened editors before closing' to 1
Run Code Online (Sandbox Code Playgroud)


Pen*_*eng 6

我认为将mishadoff的单击打开模式建议与"使用箭头键时打开"完全结合OP的问题:

Window(or Eclipse on Mac) -> Preferences -> General:
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

(我使用的是Juno版)