Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to prevent PhpStorm to save file on exit without prompt?

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.

like image 258
chubbyk Avatar asked Oct 19 '10 17:10

chubbyk


1 Answers

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.

like image 148
kovshenin Avatar answered Sep 21 '22 18:09

kovshenin