如何在Eclipse中比较两个文件? [英] How to compare two files in Eclipse?
问题描述
我想比较两个文件。一个在当前项目中,另一个在备份目录中。我知道如何比较他们是否在同一项目中。
如何在Eclipse中进行比较?
什么是Eclipse中的Flex导航器?
I want to compare two files. One is in the current project and the other is in the backup directory. I know how to compare if they were in the same project. How can I compare in Eclipse? And what is Flex navigator in Eclipse?
推荐答案
使用主菜单打开导航器: Window- >显示视图->导航器。
Open the Navigator with the Main menu: Window->Show View->Navigator.
您可以使用 Ctrl-单击在导航器中选择两个或多个文件,或者在OSX中单击命令。现在,右键单击任意一个选定文件,然后选择菜单项:与->每个其他。
You can select two or more files in the Navigator using Ctrl-click, or Command-click in OSX. Now Right-click any one of the selected files, and select the menu item: Compare With->Each Other.
问题是您的备用文件可能不在导航器中,例如您的备份目录未在导航器中列出。如果不是,请在导航器中单击右键,然后选择菜单项: New-> Folder 。在出现的对话框中,单击文件夹名称字段下方的高级>> 按钮,选择链接到备用位置(链接文件夹),然后浏览到添加备份目录。
The problem is that your alternate file might not be in the Navigator, e.g. your backup directory isn't listed in the Navigator. If not, Right-click in the Navigator and choose the menu item: New->Folder. In the resulting dialog click the Advanced>> button beneath the Folder Name field, choose Link to alternate location (Linked Folder), and browse to add your backup directory.
现在,使用导航器,您将能够选择两个文件,并使用 Compare With 。
Now using the Navigator you'll be able to select the two files, and use Compare With.
您可以使用类似方式比较文件打包浏览器。
You can similarly compare files using e.g. the Package Explorer.
这篇关于如何在Eclipse中比较两个文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!