Save files on close editor, not show dialog

Please, make like in Sublime Text that when you are cloding editor all files and tabs on which you work are saving somewhere and when you open editor again - it open last tabs. Thank you!