Setting up Sublime's autosave

People often forget to save files (I've been guilty of it myself), autosave will make sure your files are saved, even if you forget. This is especially important for code since any changes you make to your code will not be shown until your file has been saved (sometimes you might also need to restart your server). Setting up autosave will save you some time trying to understand why your code doesn't seem to be running.

This is only for Sublime. If you are using a different editor this will not work.
  1. Open Sublime
  2. Open 'Settings - User'
    Mac - click Sublime Text 2 > Preferences > Settings - User
    Windows - click Preferences > Settings - User
  3. Add this line
    { "save_on_focus_lost": true }
  4. Save the file
  5. Close the file

That's it! Now whenever you click away from a particular file in Sublime it will save. No more forgetting - now it's up to the computer to remember!