Note that Local History is not a replacement for a proper version control for long-term versioning. Local History is cleared when you install a new version of WebStorm. It also has a retention period and maximum size, so revisions are not guaranteed to persist.
本地历史会在安装新版本时被清理,当超出最长保留期限时,本地历史也会被清理。
Local History
一般除非意外断开,否则代码都不会变,应该检查你的 git,查看所处分支和检查是否存在最近提交。