8

I am new to using sublime text and find it great. I am using Sublime in Ubuntu 12.04 and am missing some features.

In SublimeText if I open a Window and close it through the menu, next time I open SublimText, the Window with the open documents will be available. Great but not very useful, because I work with many projects simultaneously.I currently keep all of them open in many windows, but is a pain to do so.

I would like to store session information on a per folder/prject basis. So, when I open Sublime through the terminal, the session will be available

For example

$ cd /path/to/project
$ sublime-text .
# if a session is saved (project opened before), opens the Sublime with the last saved session for the folder/project

It will be great to know if it is possible. After days of searching, I have grown tired of it.

4

2 回答 2

8

You can open a project from the command line by passing the .sublime-project file as an argument. Within your project, you can put custom settings like "remember_open_files": true, but set it to false in your Packages/User/Preferences.sublime-settings file.

于 2013-06-17T13:56:04.950 回答
1

To create session in sublime text

Menu “Projects” -> “Save Workspace As…” [Give name and save the session in a folder] [G:\General\Sublime] Example File name G:\General\Sublime\Corey10122020.sublime-workspace

Close the project after your project is over. The files in the project will be automatically update when close and open files in Sublime editor

Open the session

Menu “Projects”->Open Project.. [Select the file] Example File name G:\General\Sublime\Corey10122020.sublime-workspace

于 2020-12-11T07:31:41.347 回答