如何防止 PhpStorm 在退出时保存文件而不提示?

发布于 2024-09-28 03:50:49 字数 268 浏览 5 评论 0原文

考虑这种情况...您只是一次更改几个文件。代码还没有完成,电话就响了……然后你必须关闭 PhpStorm,关掉你的电脑,快点,因为有重要的事情发生了。 然后一周后,您会回来,启动您的 phpstorm 并注意到您编写的所有内容都已保存,但星号消失了。因此,您不知道在您离开之前打开的文件中的哪些文件已更改。

我在这里读了一些关于令人困惑的保存功能的帖子,我认为目前的处理方式确实不是很好。 phpstorm 应该询问我是否要保存这些更改,或者至少在启动后在选项卡中保留星号,以便开发人员知道更改了哪些文件。

Consider this situation...You're just making changes to few files at once. The code isn't completed yet and the phone is ringing... Then you have to close PhpStorm, turn off your computer and hurry because something important happened.
Then after one week you'll come back, launch your phpstorm and notice that everything you wrote was saved but asterisks are gone. So you don't know which files from those opened were changed before you left.

I read few posts here about confusing save functionality and I think this is really not very good how it's currently handled. phpstorm should ask if I want to save these changes or not or at least keep asterisks in tabs after launch so developer will know what file(s) was changed.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

剩余の解释 2024-10-05 03:50:49

看看这个:http://devnet.jetbrains.net/thread/291434

“退出时不自动保存”是严格的
团队“无法修复”。你不能
有制表符星号回来,因为文件
在编辑器中刚刚从磁盘加载并且
没有未保存的更改。它将有
没有意义。

如果您需要保留更改集
随着时间的推移,你真的应该
考虑使用源代码控制。

本地 git 存储库将为您提供
具有您需要的所有功能。只是
安装 git,执行“版本控制|Git
Init”并且你有很好的变更集,
编辑器中的更改,每次更改的差异
和文件。

Check this out: http://devnet.jetbrains.net/thread/291434

"Do not autosave on exit" is strict
"won't fix" from the team. You can't
have tab asterisks back because file
in editor is just loaded from disk and
has no unsaved changes. It will have
no sense.

If you need to preserve change sets
over time you should really
considering using source control.

Local git repository will provide you
with all the features you need. Just
install git, do "Version Control|Git
Init" and you have nice changesets,
chages in editor, diff on each change
and file.

不顾 2024-10-05 03:50:49

自动保存是 Jetbrains Platform 行为的一个组成部分,无法禁用。

Autosave is an integral part of Jetbrains Platform behavior and can't be disabled.

人事已非 2024-10-05 03:50:49

在 phpStorm 2.0 中,有一个自动保存的历史记录,我猜它是自己的内部 CVS,可以保存文件和特定行之间的更改。您可以查看文件的历史记录并恢复到较早的状态,类似于 Windows 恢复点。

我发现自动保存功能也很烦人,直到我在 phpStorm 中找到历史记录工具,现在我不在乎我的文件是否自动保存,因为我可以将所有更改与我想要的任何时间点进行比较。

In phpStorm 2.0 there is an automatic history that is saved, I guess it's own internal CVS that saves changes between files and specific lines. You can look at history of the files and restore to an earlier state sort of like windows restore points.

I found the auto save feature annoying too UNTIL I found the history tool in phpStorm and now I don't care if my files are autosaved or not because I can compare all changes to any point in time I want.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文