Sublime: Save set of tabs to open

It won't be like firefox/chrome. What I have seen, Sublime can open your tabs from last time, but it can't open a certain set of tabs automatically.

Open project, open the files you want open next time. Important - When closing Sublime, first choose Project > Close Project, then close Sublime. That will save the open tabs.

Then open each project as thisguy123 describes. Or use the command line option --project path/to/project.sublime-project.


It is annoying to close each project like this every time so set up a keyboard shortcut:

Save file as ".../Packages/CloseProjectAndExit/close_project_and_exit.py". If you don't know where your Sublime Packages directory is, look at this: http://docs.sublimetext.info/en/sublime-text-3/basic_concepts.html#the-data-directory .

import sublime
import sublime_plugin


class CloseProjectAndExitCommand(sublime_plugin.WindowCommand):
    def run(self):
        self.window.run_command("close_project")
        self.window.run_command("close_window")

Copy to keymap:

{ "keys": ["ctrl+shift+`"], "command": "close_project_and_exit" }

Save it as a project. Project-> Save Project As...

Then when you want to open the tabs again, just go to Project -> Open Project