Sublime: Save set of tabs to open











up vote
7
down vote

favorite
4












I have several files that I edit frequently, and I need all of them open at the same time. I am wondering if there is a way in sublime to save a set of files to be open...sort of like how in chrome or firefox I can have a set of web page tabs that I can configured to be open with the click of one button










share|improve this question


























    up vote
    7
    down vote

    favorite
    4












    I have several files that I edit frequently, and I need all of them open at the same time. I am wondering if there is a way in sublime to save a set of files to be open...sort of like how in chrome or firefox I can have a set of web page tabs that I can configured to be open with the click of one button










    share|improve this question
























      up vote
      7
      down vote

      favorite
      4









      up vote
      7
      down vote

      favorite
      4






      4





      I have several files that I edit frequently, and I need all of them open at the same time. I am wondering if there is a way in sublime to save a set of files to be open...sort of like how in chrome or firefox I can have a set of web page tabs that I can configured to be open with the click of one button










      share|improve this question













      I have several files that I edit frequently, and I need all of them open at the same time. I am wondering if there is a way in sublime to save a set of files to be open...sort of like how in chrome or firefox I can have a set of web page tabs that I can configured to be open with the click of one button







      sublime-text-2 sublime-text






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 4 '13 at 20:27









      Kyle

      13814




      13814






















          3 Answers
          3






          active

          oldest

          votes

















          up vote
          5
          down vote



          accepted










          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" }





          share|improve this answer





















          • It may also be convenient to have key bindings for switching between projects. (see docs.sublimetext.info/en/latest/file_management/…)
            – mareoraft
            Dec 29 '16 at 21:37










          • I'm not sure when it changed, but this is no longer necessary (at least in sublime text 2). Closing the window automatically saves the project.
            – Erin Call
            Oct 22 '17 at 20:09










          • WARNING: In Sublime Text 3, the command close_project does not exist. The now equivalent command is called close_workspace. That being said, in the current version of ST3, the built in close window command should now automatically save the project, so this script should not be necessary.
            – mareoraft
            Aug 13 at 17:54


















          up vote
          1
          down vote













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



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






          share|improve this answer

















          • 1




            This didn't work for me. I saved it, and now when I go to project->Open project, I am still looking at a blank sublime editor
            – Kyle
            Dec 4 '13 at 20:42










          • I now have two files: a 'project' file and a 'workspace' file. The 'project' file only lists some random directory. I see in the 'workspace' file the set of files that I wanted to open. Any idea of what these files should look like?
            – Kyle
            Dec 4 '13 at 20:46










          • Did you have the files open when you saved your project/workspace? I believe that the workspace file will save what you had open, syntax etc. The tabs that open for me are visible in the "Buffers" section of my workspace file.
            – thisguy123
            Dec 4 '13 at 20:49








          • 1




            Yes, the files I wanted to save with the workspace were opened.
            – Kyle
            Dec 4 '13 at 20:51


















          up vote
          0
          down vote













          In ST3 Switch Project should replace the current set of tabs with what you last had open on that project.



          If it doesn't, that means something is wrong with the project's default workspace.



          (solution further down)



          Explanation



          Sometimes the workspace file gets deleted or something got muddled up, perhaps during directory moves, or issues with files being .gitignored in one branch but not another etc...



          From documentation




          Projects in Sublime Text are made up of two files: the .sublime-project file, which contains the project definition, and the .sublime-workspace file, which contains user specific data, such as the open files and the modifications to each.



          As a general rule, the .sublime-project file would be checked into version control, while the .sublime-workspace file would not.




          Another possibility is that you saved a project to a workspace file or vice versa. I think the reason this happens is because it's easy to confuse the two, because when you do Quick Switch Project it shows you both sublime-project files and sublime-workspace files.



          Note: The reason it does that is because you're allowed multiple workspaces per project. In Quick Switch Project if you select a workspace, it opens that workspace's project and activates that workspace; if you select a project, it opens that project and activates the project's default workspace, unless it cant find it, in which case it does nothing.



          Solution



          First do a Save Project As to:



          my-project-name.sublime-project


          That's just a safety/sanity step. Then Save Workspace As to:



          my-project-name.sublime-workspace


          Where the file names match. The project will now remember the set of tabs, and switching to will open them.






          share|improve this answer





















            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f684040%2fsublime-save-set-of-tabs-to-open%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            3 Answers
            3






            active

            oldest

            votes








            3 Answers
            3






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            5
            down vote



            accepted










            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" }





            share|improve this answer





















            • It may also be convenient to have key bindings for switching between projects. (see docs.sublimetext.info/en/latest/file_management/…)
              – mareoraft
              Dec 29 '16 at 21:37










            • I'm not sure when it changed, but this is no longer necessary (at least in sublime text 2). Closing the window automatically saves the project.
              – Erin Call
              Oct 22 '17 at 20:09










            • WARNING: In Sublime Text 3, the command close_project does not exist. The now equivalent command is called close_workspace. That being said, in the current version of ST3, the built in close window command should now automatically save the project, so this script should not be necessary.
              – mareoraft
              Aug 13 at 17:54















            up vote
            5
            down vote



            accepted










            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" }





            share|improve this answer





















            • It may also be convenient to have key bindings for switching between projects. (see docs.sublimetext.info/en/latest/file_management/…)
              – mareoraft
              Dec 29 '16 at 21:37










            • I'm not sure when it changed, but this is no longer necessary (at least in sublime text 2). Closing the window automatically saves the project.
              – Erin Call
              Oct 22 '17 at 20:09










            • WARNING: In Sublime Text 3, the command close_project does not exist. The now equivalent command is called close_workspace. That being said, in the current version of ST3, the built in close window command should now automatically save the project, so this script should not be necessary.
              – mareoraft
              Aug 13 at 17:54













            up vote
            5
            down vote



            accepted







            up vote
            5
            down vote



            accepted






            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" }





            share|improve this answer












            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" }






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Dec 4 '13 at 23:52









            d_rail

            2,50411420




            2,50411420












            • It may also be convenient to have key bindings for switching between projects. (see docs.sublimetext.info/en/latest/file_management/…)
              – mareoraft
              Dec 29 '16 at 21:37










            • I'm not sure when it changed, but this is no longer necessary (at least in sublime text 2). Closing the window automatically saves the project.
              – Erin Call
              Oct 22 '17 at 20:09










            • WARNING: In Sublime Text 3, the command close_project does not exist. The now equivalent command is called close_workspace. That being said, in the current version of ST3, the built in close window command should now automatically save the project, so this script should not be necessary.
              – mareoraft
              Aug 13 at 17:54


















            • It may also be convenient to have key bindings for switching between projects. (see docs.sublimetext.info/en/latest/file_management/…)
              – mareoraft
              Dec 29 '16 at 21:37










            • I'm not sure when it changed, but this is no longer necessary (at least in sublime text 2). Closing the window automatically saves the project.
              – Erin Call
              Oct 22 '17 at 20:09










            • WARNING: In Sublime Text 3, the command close_project does not exist. The now equivalent command is called close_workspace. That being said, in the current version of ST3, the built in close window command should now automatically save the project, so this script should not be necessary.
              – mareoraft
              Aug 13 at 17:54
















            It may also be convenient to have key bindings for switching between projects. (see docs.sublimetext.info/en/latest/file_management/…)
            – mareoraft
            Dec 29 '16 at 21:37




            It may also be convenient to have key bindings for switching between projects. (see docs.sublimetext.info/en/latest/file_management/…)
            – mareoraft
            Dec 29 '16 at 21:37












            I'm not sure when it changed, but this is no longer necessary (at least in sublime text 2). Closing the window automatically saves the project.
            – Erin Call
            Oct 22 '17 at 20:09




            I'm not sure when it changed, but this is no longer necessary (at least in sublime text 2). Closing the window automatically saves the project.
            – Erin Call
            Oct 22 '17 at 20:09












            WARNING: In Sublime Text 3, the command close_project does not exist. The now equivalent command is called close_workspace. That being said, in the current version of ST3, the built in close window command should now automatically save the project, so this script should not be necessary.
            – mareoraft
            Aug 13 at 17:54




            WARNING: In Sublime Text 3, the command close_project does not exist. The now equivalent command is called close_workspace. That being said, in the current version of ST3, the built in close window command should now automatically save the project, so this script should not be necessary.
            – mareoraft
            Aug 13 at 17:54












            up vote
            1
            down vote













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



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






            share|improve this answer

















            • 1




              This didn't work for me. I saved it, and now when I go to project->Open project, I am still looking at a blank sublime editor
              – Kyle
              Dec 4 '13 at 20:42










            • I now have two files: a 'project' file and a 'workspace' file. The 'project' file only lists some random directory. I see in the 'workspace' file the set of files that I wanted to open. Any idea of what these files should look like?
              – Kyle
              Dec 4 '13 at 20:46










            • Did you have the files open when you saved your project/workspace? I believe that the workspace file will save what you had open, syntax etc. The tabs that open for me are visible in the "Buffers" section of my workspace file.
              – thisguy123
              Dec 4 '13 at 20:49








            • 1




              Yes, the files I wanted to save with the workspace were opened.
              – Kyle
              Dec 4 '13 at 20:51















            up vote
            1
            down vote













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



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






            share|improve this answer

















            • 1




              This didn't work for me. I saved it, and now when I go to project->Open project, I am still looking at a blank sublime editor
              – Kyle
              Dec 4 '13 at 20:42










            • I now have two files: a 'project' file and a 'workspace' file. The 'project' file only lists some random directory. I see in the 'workspace' file the set of files that I wanted to open. Any idea of what these files should look like?
              – Kyle
              Dec 4 '13 at 20:46










            • Did you have the files open when you saved your project/workspace? I believe that the workspace file will save what you had open, syntax etc. The tabs that open for me are visible in the "Buffers" section of my workspace file.
              – thisguy123
              Dec 4 '13 at 20:49








            • 1




              Yes, the files I wanted to save with the workspace were opened.
              – Kyle
              Dec 4 '13 at 20:51













            up vote
            1
            down vote










            up vote
            1
            down vote









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



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






            share|improve this answer












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



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







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Dec 4 '13 at 20:38









            thisguy123

            22615




            22615








            • 1




              This didn't work for me. I saved it, and now when I go to project->Open project, I am still looking at a blank sublime editor
              – Kyle
              Dec 4 '13 at 20:42










            • I now have two files: a 'project' file and a 'workspace' file. The 'project' file only lists some random directory. I see in the 'workspace' file the set of files that I wanted to open. Any idea of what these files should look like?
              – Kyle
              Dec 4 '13 at 20:46










            • Did you have the files open when you saved your project/workspace? I believe that the workspace file will save what you had open, syntax etc. The tabs that open for me are visible in the "Buffers" section of my workspace file.
              – thisguy123
              Dec 4 '13 at 20:49








            • 1




              Yes, the files I wanted to save with the workspace were opened.
              – Kyle
              Dec 4 '13 at 20:51














            • 1




              This didn't work for me. I saved it, and now when I go to project->Open project, I am still looking at a blank sublime editor
              – Kyle
              Dec 4 '13 at 20:42










            • I now have two files: a 'project' file and a 'workspace' file. The 'project' file only lists some random directory. I see in the 'workspace' file the set of files that I wanted to open. Any idea of what these files should look like?
              – Kyle
              Dec 4 '13 at 20:46










            • Did you have the files open when you saved your project/workspace? I believe that the workspace file will save what you had open, syntax etc. The tabs that open for me are visible in the "Buffers" section of my workspace file.
              – thisguy123
              Dec 4 '13 at 20:49








            • 1




              Yes, the files I wanted to save with the workspace were opened.
              – Kyle
              Dec 4 '13 at 20:51








            1




            1




            This didn't work for me. I saved it, and now when I go to project->Open project, I am still looking at a blank sublime editor
            – Kyle
            Dec 4 '13 at 20:42




            This didn't work for me. I saved it, and now when I go to project->Open project, I am still looking at a blank sublime editor
            – Kyle
            Dec 4 '13 at 20:42












            I now have two files: a 'project' file and a 'workspace' file. The 'project' file only lists some random directory. I see in the 'workspace' file the set of files that I wanted to open. Any idea of what these files should look like?
            – Kyle
            Dec 4 '13 at 20:46




            I now have two files: a 'project' file and a 'workspace' file. The 'project' file only lists some random directory. I see in the 'workspace' file the set of files that I wanted to open. Any idea of what these files should look like?
            – Kyle
            Dec 4 '13 at 20:46












            Did you have the files open when you saved your project/workspace? I believe that the workspace file will save what you had open, syntax etc. The tabs that open for me are visible in the "Buffers" section of my workspace file.
            – thisguy123
            Dec 4 '13 at 20:49






            Did you have the files open when you saved your project/workspace? I believe that the workspace file will save what you had open, syntax etc. The tabs that open for me are visible in the "Buffers" section of my workspace file.
            – thisguy123
            Dec 4 '13 at 20:49






            1




            1




            Yes, the files I wanted to save with the workspace were opened.
            – Kyle
            Dec 4 '13 at 20:51




            Yes, the files I wanted to save with the workspace were opened.
            – Kyle
            Dec 4 '13 at 20:51










            up vote
            0
            down vote













            In ST3 Switch Project should replace the current set of tabs with what you last had open on that project.



            If it doesn't, that means something is wrong with the project's default workspace.



            (solution further down)



            Explanation



            Sometimes the workspace file gets deleted or something got muddled up, perhaps during directory moves, or issues with files being .gitignored in one branch but not another etc...



            From documentation




            Projects in Sublime Text are made up of two files: the .sublime-project file, which contains the project definition, and the .sublime-workspace file, which contains user specific data, such as the open files and the modifications to each.



            As a general rule, the .sublime-project file would be checked into version control, while the .sublime-workspace file would not.




            Another possibility is that you saved a project to a workspace file or vice versa. I think the reason this happens is because it's easy to confuse the two, because when you do Quick Switch Project it shows you both sublime-project files and sublime-workspace files.



            Note: The reason it does that is because you're allowed multiple workspaces per project. In Quick Switch Project if you select a workspace, it opens that workspace's project and activates that workspace; if you select a project, it opens that project and activates the project's default workspace, unless it cant find it, in which case it does nothing.



            Solution



            First do a Save Project As to:



            my-project-name.sublime-project


            That's just a safety/sanity step. Then Save Workspace As to:



            my-project-name.sublime-workspace


            Where the file names match. The project will now remember the set of tabs, and switching to will open them.






            share|improve this answer

























              up vote
              0
              down vote













              In ST3 Switch Project should replace the current set of tabs with what you last had open on that project.



              If it doesn't, that means something is wrong with the project's default workspace.



              (solution further down)



              Explanation



              Sometimes the workspace file gets deleted or something got muddled up, perhaps during directory moves, or issues with files being .gitignored in one branch but not another etc...



              From documentation




              Projects in Sublime Text are made up of two files: the .sublime-project file, which contains the project definition, and the .sublime-workspace file, which contains user specific data, such as the open files and the modifications to each.



              As a general rule, the .sublime-project file would be checked into version control, while the .sublime-workspace file would not.




              Another possibility is that you saved a project to a workspace file or vice versa. I think the reason this happens is because it's easy to confuse the two, because when you do Quick Switch Project it shows you both sublime-project files and sublime-workspace files.



              Note: The reason it does that is because you're allowed multiple workspaces per project. In Quick Switch Project if you select a workspace, it opens that workspace's project and activates that workspace; if you select a project, it opens that project and activates the project's default workspace, unless it cant find it, in which case it does nothing.



              Solution



              First do a Save Project As to:



              my-project-name.sublime-project


              That's just a safety/sanity step. Then Save Workspace As to:



              my-project-name.sublime-workspace


              Where the file names match. The project will now remember the set of tabs, and switching to will open them.






              share|improve this answer























                up vote
                0
                down vote










                up vote
                0
                down vote









                In ST3 Switch Project should replace the current set of tabs with what you last had open on that project.



                If it doesn't, that means something is wrong with the project's default workspace.



                (solution further down)



                Explanation



                Sometimes the workspace file gets deleted or something got muddled up, perhaps during directory moves, or issues with files being .gitignored in one branch but not another etc...



                From documentation




                Projects in Sublime Text are made up of two files: the .sublime-project file, which contains the project definition, and the .sublime-workspace file, which contains user specific data, such as the open files and the modifications to each.



                As a general rule, the .sublime-project file would be checked into version control, while the .sublime-workspace file would not.




                Another possibility is that you saved a project to a workspace file or vice versa. I think the reason this happens is because it's easy to confuse the two, because when you do Quick Switch Project it shows you both sublime-project files and sublime-workspace files.



                Note: The reason it does that is because you're allowed multiple workspaces per project. In Quick Switch Project if you select a workspace, it opens that workspace's project and activates that workspace; if you select a project, it opens that project and activates the project's default workspace, unless it cant find it, in which case it does nothing.



                Solution



                First do a Save Project As to:



                my-project-name.sublime-project


                That's just a safety/sanity step. Then Save Workspace As to:



                my-project-name.sublime-workspace


                Where the file names match. The project will now remember the set of tabs, and switching to will open them.






                share|improve this answer












                In ST3 Switch Project should replace the current set of tabs with what you last had open on that project.



                If it doesn't, that means something is wrong with the project's default workspace.



                (solution further down)



                Explanation



                Sometimes the workspace file gets deleted or something got muddled up, perhaps during directory moves, or issues with files being .gitignored in one branch but not another etc...



                From documentation




                Projects in Sublime Text are made up of two files: the .sublime-project file, which contains the project definition, and the .sublime-workspace file, which contains user specific data, such as the open files and the modifications to each.



                As a general rule, the .sublime-project file would be checked into version control, while the .sublime-workspace file would not.




                Another possibility is that you saved a project to a workspace file or vice versa. I think the reason this happens is because it's easy to confuse the two, because when you do Quick Switch Project it shows you both sublime-project files and sublime-workspace files.



                Note: The reason it does that is because you're allowed multiple workspaces per project. In Quick Switch Project if you select a workspace, it opens that workspace's project and activates that workspace; if you select a project, it opens that project and activates the project's default workspace, unless it cant find it, in which case it does nothing.



                Solution



                First do a Save Project As to:



                my-project-name.sublime-project


                That's just a safety/sanity step. Then Save Workspace As to:



                my-project-name.sublime-workspace


                Where the file names match. The project will now remember the set of tabs, and switching to will open them.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Dec 5 at 11:54









                AndyHasIt

                1113




                1113






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Super User!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f684040%2fsublime-save-set-of-tabs-to-open%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                    Mangá

                    Eduardo VII do Reino Unido