Using VS Code Snippets with Resharper

后端 未结 3 1650
南方客
南方客 2020-12-23 08:52

I am trying to use Code Contract\'s Code Snippets but since I turned Resharper back on it doesn\'t recognize them. On the other hand, it is recognizing some snippets I\'ve i

相关标签:
3条回答
  • 2020-12-23 09:26

    This answer demonstrates another work around.

    1. Right-clicking in your code editor and selecting "Insert Snippet"

    2. CTRL+K,X

    This is what I am using to use mvvmlight snippets.

    0 讨论(0)
  • 2020-12-23 09:32

    Press CTRL+J then type your snippet shortcut... this is mentioned here on the Resharper site

    0 讨论(0)
  • 2020-12-23 09:40

    I have the same problem and would gladly see a solution. The snippets work even though they won't show up in the intellisense popup, so if you hit "cr"+tab you would probably get the snippet anyway.

    There is a "workaround" though. If you go to open the ReSharper settings and Environment->IntelliSense->General and change from ReSharper to Visual Studio intellisense mode. This will make your snippets show as expected, however some of the resharper intellisense additions won't be available.

    I've tried with the latest nightly build of ReSharper 5.1 and it's still not fixed, unfortunately.

    Hope this helps.

    0 讨论(0)
提交回复
热议问题