简体   繁体   中英

How to link files to package explorer in Eclipse?

I know there is a way to tell the editor window in Eclipse to link to the corresponding files. Say when you're on a file in the editor, it would be located in its corresponding project in the Package Explorer.

It shouldn't take more than enabling one option, but I am not able to find out where it is. It's a very handy thing which avoids confusion as to which file belongs to which project, if you have files with the same name in multiple projects.

Could anyone tell me where the option is located and how I can enable it again?

Package explorer has an icon named 'Link with editor'. You can locate this way your currently editing file in Package Explorer view.

在此输入图像描述

Alternatively, when you are editing, you may press Alt + Shift + W and choose Package Explorer to locate your file in Package Explorer.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM