简体   繁体   English

Eclipse Project Directory在终端中不显示新创建的文件

[英]Eclipse Project Directory does not show newly created files in the terminal

So, I have an Java project in my Project-Explorer named QuizWebsite. 因此,我的Project-Explorer中有一个Java项目,名为QuizWebsite。

Now when I use my terminal (I'm using a mac) to go to my workspace where this project is located and create a new folder or file, my project explorer does not show the newly-created file or folder. 现在,当我使用终端 (我使用的是Mac)进入该项目所在的工作区并创建新文件夹或文件时,我的项目资源管理器不会显示新创建的文件或文件夹。 For example in my terminal, inside the css folder of my project, if I type: 例如,在终端中,在项目的css文件夹中,如果键入:

$ touch styles.css $ touch styles.css

The styles.css will not show up in my eclipse Project Explorer. styles.css将不会显示在我的Eclipse Project Explorer中。 Additionally, if I try to right click and create the same styles.css file using the eclipse GUI, however, it will not allow me because it says the file already exists even though I clearly cannot see it. 另外,如果我尝试右键单击并使用eclipse GUI创建相同的styles.css文件,它将不允许我这样做,因为它说该文件已经存在,即使我显然看不到它。


The converse of this case however is not a problem. 然而,这种情况的相反不是问题。 If I use the project explorer and right click and create a styles.css file, it ends up showing inside the workspace/QuizWebsite folder in my console. 如果使用项目资源管理器并右键单击并创建一个styles.css文件,则该文件最终将显示在控制台中的工作区/ QuizWebsite文件夹中。

Any help would be greatly appreciated, 任何帮助将不胜感激,

Thanks. 谢谢。

您只需要按F5或使用右键单击菜单来刷新Eclipse项目浏览器。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM