+2

Disable autosave

Алексей Ракеев fa 12 anys actualitzat fa 11 anys 6
How could I turn off damn autosave "feature"?
It recreates files deleted from sidebar again and again. WTF?
+1
Maybe you can try the following?
"hot_exit": false"
"save_on_focus_lost": false

+1

I'd tried turning off save_on_focus_lost right after this strange behavior revealed itself the first time but with no effect. Files tend to be saved when view gains focus, not on focus lost.

Combining it with hot_exit=false does not help too.


Never mind, being highly annoying at first day of usage this drawback became almost unobtrusive in a week. I'm already used to click any other sidebar item or tab right after deletion to eliminate it =)

+1

Probably the best way to solve the problem (deleted files get re-created) is to make sublime close the view on the file when pressing delete. I am sure it can be achieved by setting up a macro with close and delete but having this as default behaviour of delete would be cleaner.

+2

I ran into the very same problem. Turns out autosave feature has nothing to do with the problem, this is Git plugin who is responsible. To solve put following config to User/Git.sublime-settings:

{

  "save_first": false

}

+5

For me the culprit was the Modific package (similar to what Alexander posted), this user setting solved it:

{

    "autosave": false

}

+1

Holy shit, I have installed modific too. And I'd never suspect it of such sabotage. Thanks, Daniel.