eclipse,刷新外部编辑器编辑过的文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13470311/
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
eclipse, refresh files edited by external editor
提问by eugene
I currently use emacs to edit .java files and run eclipse.
我目前使用 emacs 来编辑 .java 文件并运行 eclipse。
Eclipse doesn't automatically recognize modified files, so I often end up running unmodified application.
Eclipse 不会自动识别修改过的文件,所以我经常运行未修改的应用程序。
I wonder if there exists a shortcut to refresh all the modified files in eclipse.
我想知道是否存在刷新eclipse中所有修改过的文件的快捷方式。
回答by ntalbs
Perhaps you want to check Preferences > General > Workspaces > Refresh using native hooks or polling
. You can see that the eclipse refreshes the file you edit with external editor (like vi, emacs, etc) when you check the option.
也许你想检查一下Preferences > General > Workspaces > Refresh using native hooks or polling
。当您选中该选项时,您可以看到 Eclipse 会刷新您使用外部编辑器(如 vi、emacs 等)编辑的文件。
回答by Aditya K
On the project explorer you need to select the project(s) that you want to refresh and then click on File->Refresh or hit F5.
在项目资源管理器上,您需要选择要刷新的项目,然后单击文件->刷新或按 F5。