Eclipse - 我正在寻找视图。显示今天修改的文件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4119094/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 15:18:04  来源:igfitidea点击:

Eclipse - I'm looking for View. Show me files modified today

javaeclipse

提问by chris

I'm looking for some View in eclipse, which show me modified files by me today. I have many projects, and naturally i can use SVN but I would like somethin easy. Any view can do this requirments ?

我正在 eclipse 中寻找一些视图,它向我展示了我今天修改过的文件。我有很多项目,自然我可以使用 SVN,但我想要一些简单的东西。任何观点都可以做到这一点?

采纳答案by chris

OK, Finally i found soultions, but not in Eclipse.

好的,最后我找到了灵魂,但不是在 Eclipse 中。

Tortoise SVN has option: Right click on my workspace and choose: "Check for Modifications". Date sort and I have what i want.

Tortoise SVN 有选项:右键单击我的工作区并选择:“检查修改”。日期排序,我有我想要的。

回答by Adisesha

Right Click on Project-> Restore from Local History.. this is closer answer to your question, I can not think anything that answers your question.

右键单击“项目”->“从本地历史恢复”.. 这是对您问题的更接近答案,我想不出任何可以回答您问题的内容。

回答by zvikico

AFAIK, there is no specific view that does that, but, you can use an external tool for that matter. If you are on a Unix box (Linux/OS X), the following command will look for files under the current directory which were modified in the last 24 hours:

AFAIK,没有特定的视图可以做到这一点,但是,您可以为此使用外部工具。如果您使用的是 Unix 机器(Linux/OS X),以下命令将在当前目录下查找过去 24 小时内修改过的文件:

find . -mtime -1 -print

On Windows, you might want to use cygwin or find an alternative command.

在 Windows 上,您可能想要使用 cygwin 或查找替代命令。

To define the command:

定义命令:

  1. Go to Run menu → External Tools → External Tools Configuration
  2. Create a new program execution configuration.
  3. In location enter the find command path (/usr/bin/find) and in arguments enter: ${selected_resource_loc} -mtime -1 -print
  4. Save your configuration.
  1. 转到运行菜单 → 外部工具 → 外部工具配置
  2. 创建新的程序执行配置。
  3. 在 location 中输入 find 命令路径 ( /usr/bin/find) 并在 arguments 中输入:${selected_resource_loc} -mtime -1 -print
  4. 保存您的配置。

In the arguments, you are telling Eclipse to enter the selected resource location as the search directory. Now, you can select a folder or file, and run the configuration from the External Tools button in the toolbar (green arrow with red toolbox icon).

在参数中,您告诉 Eclipse 输入选定的资源位置作为搜索目录。现在,您可以选择一个文件夹或文件,然后从工具栏中的“外部工具”按钮(带有红色工具箱图标的绿色箭头)运行配置。

回答by Nerrve

As far as i know, there is no utility that shows you the files modified "today" but there is a utility that shows you the files modified locally i.e. the dirty files.

据我所知,没有实用程序可以显示“今天”修改的文件,但有一个实用程序可以显示本地修改的文件,即脏文件。

Go to Window-> Open Perspective -> Other..-> Team Synchronizingand then click on the populate button

转到 Window-> Open Perspective -> Other..->Team Synchronizing然后单击填充按钮

It will show you all the outgoing changes without going to the svn server.

它将向您显示所有传出更改,而无需转到 svn 服务器。

In case you want to see the incoming and conflicting changes also, you will have to click the synchronize button that will check with the server to see for changes/conflicts etc.

如果您还想查看传入和冲突的更改,则必须单击同步按钮,该按钮将与服务器检查以查看更改/冲突等。

回答by CG Christen Christensen

I was facing the same problem today, only I wanted to know which files was edited last friday. I realized there was a quite simple and flexible solution to solve this problem.

我今天面临同样的问题,只是我想知道上周五编辑了哪些文件。我意识到有一个非常简单和灵活的解决方案来解决这个问题。

(I use windows) -To the folder of the project. Search for all files. -Sort them by edit date

(我使用 Windows) - 到项目的文件夹。搜索所有文件。- 按编辑日期排序

There is one drawback to this solution though! It will also show you folder! To solve this problem I searched with *.JS which meant I saw JS and JSP files.

但是,此解决方案有一个缺点!它还会显示您的文件夹!为了解决这个问题,我使用 *.JS 进行搜索,这意味着我看到了 JS 和 JSP 文件。

In many cases this simple solution will be sufient.

在许多情况下,这个简单的解决方案就足够了。

回答by oshai

I recommend using mylyn. It it already integrated in your eclipse. just start a new task before starting the changes any it will "record" all changes made and display them in the package explorer view.

我建议使用mylyn。它已经集成在您的日食中。只需在开始更改之前启动一个新任务,它就会“记录”所做的所有更改并将它们显示在包浏览器视图中。