All my new Live Templates disappeared!

I spent a few hours creating a dozen or so new Live [File] Templates to cover all my common scenarios.  Had them just right.

Had a VS crash (ReSharper is a prime suspect) hours later, and now all my templates are GONE!

Best I can tell, the templates are stored in %AppData%\JetBrains\ReShareper\v6.0\vs10.0\UserSettings.xml.  Having been through this before, I created a Mercurial repository on that folder a month ago and auto-checkin every 15 mins.  But to my surpise, there were no updates to the file while I was making these changes.  

Just to test it out, I created a new template, then clicked *SAVE*...but the UserSettings.xml file was not written to...until VS.Net closed!

Does this mean that ReSharper will ALWAYS lose any new or edited Live Templates if the current VS.Net instance does not close cleanly?  Is there somewhere else that the Live Templates are saved to that I might be able to recover?

1 comment
Comment actions Permalink

Hello Scott,

Yes, ReSharper 6 saves settings on Visual Studio shutdown (or when it is
suspended under Tools | Options | ReSharper | General), so if VS crashes
your changes may get lost. This problem will be addressed in the upcoming
ReSharper 6.1. The Early Access Program builds of ReSharper 6.1 are available
at http://tinyurl.com/6bdgz6p. Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I spent a few hours creating a dozen or so new Live Templates
to cover all my common scenarios.  Had them just right.

Had a VS crash (ReSharper is a prime suspect) hours later, and now all
my templates are GONE!

Best I can tell, the templates are stored in
%AppData%\JetBrains\ReShareper\v6.0\vs10.0\UserSettings.xml.  Having
been through this before, I created a Mercurial repository on that
folder a month ago and auto-checkin every 15 mins.  But to my surpise,
there were no updates to the file while I was making these changes.

Just to test it out, I created a new template, then clicked
SAVE...but the UserSettings.xml file was not written to...until
VS.Net closed!

Does this mean that ReSharper will ALWAYS lose any new or edited Live
Templates if the current VS.Net instance does not close cleanly?  Is
there somewhere else that the Live Templates are saved to that I might
be able to recover?

---
Original message URL:
http://devnet.jetbrains.net/message/5391945#5391945



0

Please sign in to leave a comment.