sublime text 2 windows code example
Example 1: autosave in sublime text windows 10
Windows - click Preferences > Settings - User
Add this line
{ "save_on_focus_lost": true }
Save the file
Close the file
Example 2: sublime text linux
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -