Is it possible to set up Texstudio such that it makes a backup of each LaTeX file it opens before any edit?

  • I don’t think this is possible with TeXstudio but depending on the OS you surely can setup a script that does this upon opening the file from the system (and not with the Open File dialog within TeXstudio). TeXstudio however supports SVN. – Qrrbrbirlbel Sep 4 '13 at 5:57

You can do this via scripting (Macros -> Edit Macros ...)

enter image description here

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.

  • Thanks. Can you give a link to abs's of using version control with Texstudio usable by a newb? – per Sep 4 '13 at 22:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.