I'm afraid I can't exactly diagnose your problem , but you can create your own .cwl
file. Hopefully this is an acceptable alternative.
Reference: http://texstudio.sourceforge.net/manual/current/usermanual_en.html#CWLDESCRIPTION
1) The first step is to find the directory where the .cwl
files are stored.
If you're on Windows, the custom .cwl
files are stored in .\AppData\Roaming\TeXstudio\completion\user
directory. If in doubt, go to Help
->Check LaTeX installation
from within TeXstudio and search for Setting file
. The directory should be printed out for you.
![Check latex installation](https://i.stack.imgur.com/q1eBs.png)
2) Go to Notepad or any other text editor (TeXstudio works too!). The command syntax for the .cwl
file is as follows:
<command>[#classification]
For a list of classification styles and what they do, refer to the link above, section 4.13.3. For now, try adding just one line to the text file:
\ThisIsMyCommand#n
and save it with a file name of your choice. As far as I know, this doesn't have to coincide with your .sty
name, so let's choose randomcwl.cwl
as a file name. Ensure that it is .cwl
file.
![notepad](https://i.stack.imgur.com/ZjqUs.png)
3) Go ahead and place this file into your .cwl
directory from Step 1.
4) Now, if you go to Configure TeXstudio
-> Completion
, You'll find the random.cwl
choice has popped up. Check the box.
![random](https://i.stack.imgur.com/rm02sl.png)
5) And test it out!
![it works!](https://i.stack.imgur.com/iR0K9l.png)
Best Answer
TeXstudio does not save any temporary copies of your file.
There is an option
Advanced Editor -> Special Options -> Auto Save All Files. When activated, this calls
File -> Save All` in regular intervals. However, this function is deactivated by default, because it saves and thus overwrites your original file. Since a user should be aware of this behavior and its consequences, it is not activated by default.