When using Visual Studio console applications I often use the following line of code:
Console.WriteLine("press [enter] to exit");
Is there a way of setting up a short-cut key in Visual Studio so that I don’t need to type this every time?
There are probably other lines of code I regularly use for one reason or another that a short-cut feature would be beneficial.
You can define yourself a code snippet. Creating Our Own Snippets Using Visual Studio 2010 is a cool article for this.
For
Console.Writeline()method, writecwand press Tab twice.