ReSharper - How to show custom snippet in IntelliS

2019-06-22 06:23发布

问题:

I've created a custom snippet that contains a shortcut proplto. If I hit Ctrl-K, Ctrl-X and open My Code Snippets I can select my snippet. I can also type proplto in code, hit TAB and the snippet is inserted. However, I can't find a way to display my snippet in IntelliSense. It shows prop and propg but not my proplto. I tried adding my snippet by going to Resharper > Templates Explorer, selecting C# and importing my snippet file. It says "No templates of type 'Live Templates' found in the file.'

VS2013 Ultimate ReSharper 8.2

回答1:

ReSharper Live Templates feature does not support Microsoft Code Snippets. So, you need to create a new live template manually in ReSharper | Template Explorer | C# | New and type needed code there. More info how to create Live Templates you may find here

After you adding proplto Live Template to Templates Manager, it will be available in IntelliSense.

ReSharper 9.0:
ReSharper>Tools>Templates Explorer