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.
- Open Sublime
-
Open 'Settings - User'
Mac - click Sublime Text 2 > Preferences > Settings - UserWindows - click Preferences > Settings - User
-
Add this line
{ "save_on_focus_lost": true }
- Save the file
- 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!