Eclipse's local history…where are files saved?

后端 未结 6 552
梦谈多话
梦谈多话 2020-12-15 16:55

Can someone explain how Eclipse\'s local history works?

I accidentally overwrote a file in a project but need to revert to an earlier version. Is there a chance that

6条回答
  •  悲哀的现实
    2020-12-15 17:42

    Try right-clicking on the file in eclipse, and choose Replace With->Local History.

    If there's history available, it'll show up as a list of edit times.

    But more importantly, as pointed out in other answers, be sure to put your files in version control! SVN is pretty easy to set up (you don't need a server; it can just use the file system); use it even if you aren't sharing with others.

    A tip: whenever you hear yourself say "yes!", check in all of your code. 10 minutes later, you'll be saying "how did I mess that up?"

提交回复
热议问题