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. Note: The reason it does that is because you're allowed multiple workspaces per project. 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. sublime-workspace file would not.Īnother possibility is that you saved a project to a workspace file or vice versa. sublime-project file would be checked into version control, while the. sublime-workspace file, which contains user specific data, such as the open files and the modifications to each.Īs a general rule, the. sublime-project file, which contains the project definition, and the. Projects in Sublime Text are made up of two files: the. gitignored in one branch but not another etc. Sometimes the workspace file gets deleted or something got muddled up, perhaps during directory moves, or issues with files being. If it doesn't, that means something is wrong with the project's default workspace. In ST3 Switch Project should replace the current set of tabs with what you last had open on that project. import sublimeĬlass CloseProjectAndExitCommand(sublime_plugin.WindowCommand):Ĭopy to keymap: If you don't know where your Sublime Packages directory is, look at this. Save file as "./Packages/CloseProjectAndExit/close_project_and_exit.py". It is annoying to close each project like this every time so set up a keyboard shortcut: Or use the command line option -project path/to/project.sublime-project. Then open each project as thisguy123 describes. Important - When closing Sublime, first choose Project > Close Project, then close Sublime. Open project, open the files you want open next time. What I have seen, Sublime can open your tabs from last time, but it can't open a certain set of tabs automatically.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |