Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Is it possible to create a code snippet in visual studio, that intellisense will provide as a class member?

Example:
List<string> texts = new List<string>();
texts. //after typing the dot, I want intellisense to provide my snippet


What I have tried:

I've tried to find an XML element that solves this, but I don't think there is one.
Posted
Updated 12-Apr-23 21:57pm

1 solution

 
Share this answer
 
Comments
Member 15977801 13-Apr-23 4:54am    
I know how to create a snippet, but I do not know how to call it in the same way as for example member function (write an object instance name, press dot and select snippet from intellisense)
Richard MacCutchan 13-Apr-23 6:30am    
Sorry, I have not used this feature. You will need to do some more research on the subject.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900