Ctrl+X
It will ask if you want to save, press yes.

Read for more info: http://www.howtogeek.com/howto/42980...e-text-editor/