In Intellij IDEA how do I reload file content's from disk?
intellij-idea
Solution
What I do in a similar situation:
- Simple - Ctrl+Z, Ctrl+Shift+Z many times to quickly navigate the editing history
- VCS rollback - either for the whole file or for the area being edited (by clicking green areas on the left)
- Local History. Well, yes, for you case it's granularity is not sufficient, so first might be an option
There is also an option to put a label into Local History if you need to rollback to a specific point in time.
For those who use autosave - it is being triggered when code editor loses focus. So doing Alt-Tab during long editing without compiling or running the code makes sense.
Problem
In vim I can type `:e` and reload a file's contents from disk overwriting any changes I've made. It's a nice way to reset in case I've gotten lost or just want to undo all my changes. This obviously doesn't take into account any kind of refactoring, I just want to nuke all changes to buffer. Not even closing and reopening a tab will work. How do I do this with Intellij IDEA? I'm using Intellij IDEA Ultimate 13 and I've disabled any kind of auto save.