VS 2010: Cant paste mvvm-light snippet using shortcut - incompatible with resharper 5?

I recently installed some snippets that come with the mvvm-light infrastructure that I use. And of course I checked through

Tools > Code Snippet Manager 

and they are installed in the "My code snippets" section.

If I insert Snipper (right click in the code window) or CTRL K + CTRL X, then I can search all available fragments ....

But I believe that you can just type a key combination (in this case, mvvmlocatorproperty), and clicking a tab inserts a fragment

BUT, when I press the shortcut key, it won’t recognize anything ...

What am I doing wrong?

Is this not incompatible with resharper 5? - which I installed

Any ideas really appreciated

+3
visual-studio resharper mvvm-light
Jun 02 '10 at 19:17
source share
2 answers

This is the expected behavior if you have ReSharper IntelliSense enabled - ReSharper suppressed VS native IntelliSense in all file types it supports, and ReSharper IntelliSense does not show VS code fragments. Basically you have a choice of two alternative methods:

  • Disable ReSharper IntelliSense completely and use VS IntelliSense. To do this, go to ReSharper> Options> Environment> IntelliSense> General and check the box "Visual Studio". This will revert back to VS IntelliSense, which shows snippets in its completion lists.

  • Deploy your snippet as a ReSharper live template . This will allow you both templates listed in the completion lists to take full advantage of ReSharper IntelliSense, including support for lowerCamelHumps (completing MyLongTypeName by entering mltn), variable naming conventions, various rendering styles for direct and inherited members in the completion lists, generating a trivial code, etc. You can learn more about completing ReSharper code from this page and its child pages.

+2
May 08 '11 at 20:18
source share

No, it should work with R # 5.0, I also installed it. I am not sure what the problem is. Send me an email and I will give you my MSN so that we can try and debug it.

Thanks Laurent

+1
Jun 04 '10 at 9:28
source share



All Articles