Using VS code snippets with Resharper

I am trying to use Code Contract Code snippets, but since I turned on Resharper, it has not recognized them. On the other hand, it recognizes some fragments that I have implemented in the past.

Any ideas what could be the problem? I specifically try to use cr and ce , which I think do not interfere with any other fragments (at least from what I see in intellisense).

I am using R # 5 with VS 2010

thank

+51
c # visual-studio resharper code-snippets
May 12 '10 at 3:47
source share
3 answers

Press CTRL + J , then enter the label of your fragment ... this is the Resharper mentioned here

+116
Dec 06 '10 at 5:39
source share

This answer demonstrates another work.

  • Right-click in the code editor and select "Insert Snippet"

  • CTRL + K , X

This is what I use to use mvvmlight fragments.

+16
Sep 21 '10 at 3:05
source share

I have the same problem and would love to see a solution. Snippets work even if they don’t appear in the intellisense popup, so if you click on the cr + tab, you will probably get a snippet.

However, there is a workaround. If you open the ReSharper and Environment-> IntelliSense-> General settings and switch from ReSharper mode to Visual Studio intellisense. This will cause your snippets to appear as expected, however some intellisense redirect add-ons will not be available.

I tried with the latest nightly build of ReSharper 5.1, but still haven't fixed it.

Hope this helps.

+12
Jun 07 '10 at 18:26
source share



All Articles