Search code examples
c#visual-studiovisual-studio-2010resharpercode-snippets

custom code snippets in intellisense


I've started exporting some of my frequently used blocks of code to custom snippets. Is there a way to get these to show up in IntelliSense and not have to use the snippet browser from the context menu or snippet manager?

At first, I thought this was related to ReSharper, but they still don't show up when I disable the ReSharper IntelliSense.

It would be nice to be able to just use the snippet shortcut instead of using the browser.


Solution

  • You need to set the ShortCut property like <Shortcut>slpropdp</Shortcut>. The best way to learn editing this, just check any of the already existing codesnippets. By, going to Tools -> Code snippet manager. Select any code snippet, the location of the code snippet will be available at the top location bar