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?
The IDE places the file in the root directory of the project. You cannot influence it to do otherwise.