Saving and Restoring Workspaces
Saving and Restoring Workspaces
A workspace contains session state that changes from session to session, such as the list of open files. A workspace contains the following things:
•
The names of the files you have open
•
Selections in each file
•
Selection history (where you have been in each file)
•
The size and position of each source file window
•
Search and replace strings
•
Source links
•
Dialog box typing history
•
The command recording (see “Start Recording” on page 333.)
When you exit Source Insight, the current workspace is saved in a workspace file. When Source Insight starts, it restores the previous session's workspace.
If a project is not open, then the name of the current workspace file is Global.siwork. If a project is open, the name of the current workspace file is <projectname>.siwork and it is stored in the project's data directory.
Loading and Saving Workspaces
To open a workspace, use the File > Load Workspace command.
You can use the File > Save Workspace command to save the contents of the current workspace to any other workspace file.
Managing Tasks With Workspaces
By using multiple workspaces, you can group your tasks, and save them individually.
For example, let's say you have two different tasks on which you are working. For task 1, you open all the source files for that task and begin working. When you want to stop working on task 1, you use the Save
Workspace command to save the file "Session1" (or whatever name you want to use). Close all files, and open the source files to begin working on task 2. When you want to stop working on task 2 and resume working on task 1, use the Save Workspace command to save the file "Session2", then use the Open Workspace command to open the task 1 session, "Session1".
Source Insight 4 User Guide 141