Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove a file from an Eclipse project without deleting the file from the disk?

Tags:

eclipse

Is it possible to remove a file from an Eclipse project without actually deleting the file from the disk?

Is there a reason why adding/removing files to/from a project is so tightly connected with what happens to the corresponding files on the disk?

like image 329
Kaveh Avatar asked Feb 26 '14 18:02

Kaveh


People also ask

How do I delete a File in Eclipse?

To delete a project, right-click on the project in the Package Explorer. Again, select “Delete” from the context menu. To delete your project select the option “Also delete contents under…” and select “Yes.”

Where are Eclipse project files stored?

- [Voiceover] When we first installed Eclipse, and we launched it for the first time, do you remember the prompt that it asked you where you wanted to store your files? It automatically defaults to the C drive, to users, your username, and it creates a folder called Workspace. That's where your files are located.

How do I delete multiple files in Eclipse?

Select all files in the Search view with Ctrl-A. Right-click the selected files and choose Show In > Navigator from the popup menu. All matched files are now selected in the Navigator view. Right-click one of the selected files in the Navigator, and choose Delete.

How do I delete a workspace folder in Eclipse?

You can remove the workspace from the suggested workspaces by going into the General/Startup and Shutdown/Workspaces section of the preferences (via Preferences > General > Startup & Shudown > Workspaces > [Remove] ).


1 Answers

You can filter out file system resources you don't want Eclipse to see. To do that, right click on the folder, go into Properties and then under Resource -> Resource Filters.

like image 179
Konstantin Komissarchik Avatar answered Sep 26 '22 08:09

Konstantin Komissarchik