IntelliJ IDEA closing unsaved tabs

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-10 17:20:25

问题


I know that I can mark unsaved files with asterisk if I check the corresponding check box in settings. But when I close the tab IDEA is not asking me "Do you want to save changes?". Tab is just closed and nothing in the project structure is not indicating that I have unsaved file. When I run the application it just saves the file and run the app.

Can I make IntelliJ IDEA to ask me that there is unsaved files in my project that I should now about before launching ?


回答1:


You can't, at least not until this request is addressed.

Use Local History feature, see also this answer.




回答2:


I've researched this and it appears that the designers of IntelliJ intentionally block this feature for the most bizarre of reasons, and have been doing so since at least 2012 on this ticket: https://youtrack.jetbrains.com/issue/IDEABKL-6460 . They refuse to even let you configure the editor to warn on closing unsaved files and give you the choice of saving it or discarding your edits.

Wow. I'm dumbfounded.

Sorry for the bad news...I had the same question and am thoroughly disappointed with their answer.



来源:https://stackoverflow.com/questions/17089194/intellij-idea-closing-unsaved-tabs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!