简体   繁体   English

Eclipse:如何区分未在项目资源管理器中列出的文件

[英]Eclipse: how to diff files not listed in project explorer

I can open files not in my project area by using File->Open File... I can't figure out a way to diff these files (either against each other or against files in my project) This would be a nice way to use eclipse as a general visual diff utility when files are not inside the project area. 我可以使用“文件”->“打开文件”来打开不在我项目区域中的文件...我无法找出一种方法来区分这些文件(彼此之间或项目中的文件之间)。这将是一种不错的选择当文件不在项目区域内时,将eclipse用作常规的可视化diff实用程序。 I know I could just copy the files to a project directory and use Compare With->Each Other, but it's a hassle & I would rather not clutter up my project directory with one-offs. 我知道我可以将文件复制到项目目录中,并使用“与->其他相比”,但这很麻烦,我也不希望一次性将项目目录弄乱。

Have a scratch project called whatever you want (mine is called "testing-project"). 有一个随便一个名为您想要的项目(我的项目称为“测试项目”)。 Drag and drop your file from wherever it is into that project, and when Eclipse prompts you whether you want to Copy or Link To the file, choose Link To. 将文件从任何位置拖放到该项目中,然后当Eclipse提示您是否要复制或链接到文件时,选择“链接到”。 Then you have 1) left the file in the original, non-project location, 2) have access to the Eclipse toolkit, including Compare, and 3) aren't cluttering up your "real" projects. 然后,您可以1)将文件保留在原始的非项目位置,2)可以访问Eclipse工具包,包括Compare,以及3)不会使您的“实际”项目变得混乱。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Eclipse:如何在项目资源管理器中隐藏自定义文件 - Eclipse: how to hide custom files in Project Explorer 在Eclipse的Project Explorer中对文件进行分组 - Grouping Files in Project Explorer in Eclipse 如何在Eclipse Juno的项目浏览器中对文件和目录进行排序? - How to sort the files and directories in the Project Explorer of Eclipse Juno? 如何在eclipse项目资源管理器中更改已更改文件的背景颜色? - How to change the background color for changed files in eclipse project explorer? 没有文件更改,但是Git Eclipse项目浏览器指示有 - No files changed but Git Eclipse project explorer indicates there are 如何从Project Explorer和Package Explorer将文件获取到Eclipse上的新View? - How to get files from Project Explorer and Package Explorer to new View on Eclipse? Eclipse:在项目资源管理器中隐藏 jar 文件 - Eclipse: hide jar files in Project Explorer 在Eclipse Juno中的项目浏览器中按日期对文件进行排序 - sorting files by date in project explorer in eclipse juno 在Eclipse项目资源管理器中隐藏不需要的文件 - Hide unwanted files in eclipse project explorer eclipse中的pydev插件没有显示项目资源管理器中的文件 - pydev plugin in eclipse not showing the files in the project explorer
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM