Question

For example I am working on some subtask of project, usually it is 3-7 files of sourcecode and i keep them opened in editor. When I finish and switch to another task, then I start to use another set of sourcecode files. But usually I have to switch to the task at least several times (when customers or testers change/clarify requirements, when some bugs are found etc). I would like to save set of opened in IDE files in order to be able to reopen them later.

Delphi desktops doesn't save opened files, only layout of forms, so it doesn't help. Is there any way to do it? Maybe workaround ?

Was it helpful?

Solution

Delphi saves the desktop of open files in its .dsk file. This is associated with a Delphi project. So the obvious conclusion is that you just need to change projects. Make each sub-task be a branch in your version control system and that will allow you to operate on different Delphi projects for each sub-task.

If you don't want to do that, then I guess you could perform some trickery with .dsk files. Like this:

  1. For each sub-task, open the set of files for that sub-task.
  2. Then close the project and make a copy of the .dsk file. Name it like this: MyApp.dsk.subtask1. Do the same for all sub-tasks.
  3. Whenever you need to switch sub-tasks, copy MyApp.dsk.subtaskN on top of MyApp.dsk before opening the project.

Obviously you could easily script that for convenience.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top