Is it possible to set up Texstudio such that it makes a backup of each LaTeX file it opens before any edit?
[Tex/LaTex] Automatic file backup in Texstudio
texstudio
Related Question
- [Tex/LaTex] TeXstudio should not automatically sync between PDF viewer and LaTeX source
- [Tex/LaTex] TeXstudio “creating a backup of the file failed”
- [Tex/LaTex] Automatic file backup in Texstudio with time
- [Tex/LaTex] Display PDF when open Tex File TexStudio
- [Tex/LaTex] TeXstudio – Open other instances / sessions on Windows
Best Answer
You can do this via scripting (Macros -> Edit Macros ...)
Note, that TXS will ask you to confirm the writing of the file because automatic writing of files from a script may pose a secuity hole.
If you like, you can improve the script, e.g. to prevent that an existing backup is overwritten. You may also be interested in this related solution. But as stated there, you might consider using a version control system instead of creating multiple copies of files.