Options -> Environment..." /> Options -> Environment..." /> Options -> Environment..."/>

Can I specify the save location for Delphi .dsk file?

628 Views Asked by At

I want the Delphi IDE to remember which files I had open, etc., but if I enable the "Project Desktop" autosave option (Tools -> Options -> EnvironmentOptions in XE7) it puts the .dsk file in the root folder of my source code.

We are using git for our version control, and whenever I do a git clean -xdf it deletes the .dsk file.

I realize I could use the -e option to explicitly exclude this file from a git clean, but really what I want is a way to tell the IDE to save the file somewhere else. Is this possible? If not, any other workaround?

1

There are 1 best solutions below

2
On BEST ANSWER

The IDE places the file in the root directory of the project. You cannot influence it to do otherwise.