通过使用Eclipse
快捷方式 ( CTRL++ Shift)
将同时显示 ( R)文件和 ( ) 文件。
像那样src
target
问题是
有时
我错误地选择了目标文件然后我更新了我的更改
构建后我将看不到新的更改!
那是因为我更新了错误的文件(目标)
所以任何想法
如何通过 Eclipse 快捷方式 ( ++ )只显示 ( src
) 文件而不是 ( ) 文件? target
CTRLShiftR
The quick and (dirty way) :
Right click on a target folder
(s)
Go to folder(s) properties,
Mark folder as Derived
like that.
Derived entities are excluded from searching by default like that.
The (safe way) :
By create a working set
That include only those entities you want searched and search only within that working set.
In our case will include ALL without target folder
(s).
Note : This answer is related to
Exclude folders from Eclipse search
在 java build-path 上的 project-settings 中,您会在源代码中找到这样的复选框:
禁用它,因为不会将目标文件夹中的文件获取到您的视图中。所以你不会通过 Eclipse 快捷方式 ( ++)CTRL找到Shift它R