如何防止 PhpStorm 在退出时保存文件而不提示?
考虑这种情况...您只是一次更改几个文件。代码还没有完成,电话就响了……然后你必须关闭 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
看看这个:http://devnet.jetbrains.net/thread/291434
Check this out: http://devnet.jetbrains.net/thread/291434
自动保存是 Jetbrains Platform 行为的一个组成部分,无法禁用。
Autosave is an integral part of Jetbrains Platform behavior and can't be disabled.
在 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.