How to insert code snippet
-
I want to insert code snippet for Console.WriteLine(). I type the characters cw and pressing ENTER or TAB. But nothing is happening. When i type the characters cw intellisense shows me that this is code snippet for Console.WriteLine(), but either by pressing TAB or ENTER i can only see cw written. Yes, i can explicitly invoke the "insert snippet" menu and select my snippet. But i want to insert snippet quickly during coding without invoking menu. Please tell me how to do so ?
Imtiaz
-
I want to insert code snippet for Console.WriteLine(). I type the characters cw and pressing ENTER or TAB. But nothing is happening. When i type the characters cw intellisense shows me that this is code snippet for Console.WriteLine(), but either by pressing TAB or ENTER i can only see cw written. Yes, i can explicitly invoke the "insert snippet" menu and select my snippet. But i want to insert snippet quickly during coding without invoking menu. Please tell me how to do so ?
Imtiaz
After typing "cw", hit tab two times.
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions
-
After typing "cw", hit tab two times.
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions
-
Excellent, like the original poster I'd never understood how to do that. It's so easy when you know how! Alan.
Yes, it's very easy. The most used one by me is "prop" for creating a property structure.
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions