toreinfinite.blogg.se

Intellij find deleted file
Intellij find deleted file











Local history to the rescue! Right-click anywhere in the editor and choose Local History | Show History or press Ctrl+Shift+A on Windows and Linux or ⇧⌘A on macOS and then type ‘local history’. The undo action can’t help you here, because that change is too far away and you’ll be forced to discard other changes if you use it.

intellij find deleted file

Let’s imagine you had made a ton of changes to a file since your last commit before you realized you’ve deleted a meaningful chunk of code. The default retention period for local history is 5 days, but that’s configurable.

INTELLIJ FIND DELETED FILE PC

It may also serve as a recovery source if your PC restarts unexpectedly before you can take any action. It automatically records your project’s revisions triggered by various events as you edit code, run tests, deploy applications, and so on.Īcting as your personal version control system, local history lets you restore deleted files, bring back separate changes, or roll back to any state of a file even if no version control is enabled for your project yet, or if an unwanted change was made after your last commit. Unlike version control systems, which only keep track of the differences made between commits, local history offers much more.

intellij find deleted file

Continuing our series on how2pro with IntelliJ IDEA, today we’d like to tell you more about a good old feature that can turn out to be a real lifesaver: Local History.











Intellij find deleted file