what does “link with editor ” feature do in Eclipse?

僤鯓⒐⒋嵵緔 提交于 2019-12-05 00:53:24
Mark Peters

It ensures that the file you have open (are currently editing) is selected and visible in the Navigator/Project Explorer. So that if you want to see other classes in the same package, e.g. you don't have to drill all the way into it manually.

If you want to see it work, have the Navigator view open and enable this setting. Then switch to editing a new file (without using the Navigator, e.g. use CTRL-T and type the class name directly, or click a different editor tab). The selection in the Navigator should update to the file you're now editing.

Link with editor is useful when you open many files in your project. When you select a file in the editor, the Project Explorer or the Navigator show you the same file in its document tree.

user2043513

Whenever you choose an open file (JSP, Java, etc) in the editor, the Navigator will jump to that file in the project structure, opening any folders needed.

I personally found it to be a pain... I like to keep the area of a project I'm working with stable and I'm using Ctrl+Shift+R to skip around looking for files. If I'm doing that, the navigator is skipping all over the place.

In simple words, Link with editor sets default editor for file types, for example, xml editor will be used for editing xml files etc.,

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!