I've created some custom live templates with Reshaper 5.0 for C# files and they work fine. They also work for for JavaScript inside a .aspx file too.
However, when I try to use my custom live template shortcut keystrokes inside a .js file, which is part of the Visual Studio 2010 solution, nothing (related to Resharper) shows up in the context window when I type the shortcut characters.
Do I have to enable something related to the .js file type in Resharper?
I figured it out. The live templates for Resharper were hidden because of a setting in Visual Studio.
How to enable the Resharper Live Templates inside a JavaScript file:
Now I can utilize my custom live templates. I've built up some that inject frequently used statements like the jQuery onload code block. It would be nice to get both features working, but for now, I'll take the live templates over the auto list members feature.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With