How to restore open files when I close and reopen a project in Eclipse

For my workflow and code structure, it's very helpful to be able to close and reopen Eclipse projects fairly regularly. One problem I have however is that when I close a project, it doesn't remember which files were open, so when I reopen the project, it's just an empty screen.

Is there any way to set eclipse to reopen the files that were open when I closed a project, when I reopen it?

3

1 Answer

To my knowledge there's no way to do this per-project, but as mentioned in the comments workspace state is saved. I've found that having one workspace per project has been reasonably effective for use-cases that require closing/reopening projects regularly.

It would be nice, of course, if projects worked the same way inside a single workspace, but I don't think that exists presently.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like