Enable Auto Save on Sublime Text 2

So recently i have been using sublime for a PHP(!) project. And i missed the auto save feature of rubymine that i am so used to. Turns out that sublime has a similar feature. Its disabled by default though.

You can enable it by: Sublime Text2 -> Preferences -> Settings - Default

Then set:

"save_on_focus_lost": true,

Thats it!.