Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ IDEA closing unsaved tabs

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 ?

like image 538
Danylo Volokh Avatar asked Jun 13 '13 14:06

Danylo Volokh


2 Answers

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

Use Local History feature, see also this answer.

like image 102
CrazyCoder Avatar answered Oct 04 '22 03:10

CrazyCoder


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.

like image 30
David Hempy Avatar answered Oct 04 '22 02:10

David Hempy