Created
October 30, 2014 16:30
-
-
Save jonsagara/d499e2151756b6022b77 to your computer and use it in GitHub Desktop.
Snippet for a "Press any key to quit..." prompt in a Visual Studio C# console application
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<CodeSnippets | |
xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<CodeSnippet Format="1.0.0"> | |
<Header> | |
<Title>AnyKeyQuit</Title> | |
<Author>Jon Sagara</Author> | |
<Description>Inserts a "Press any key to quit..." prompt</Description> | |
<Shortcut>quit</Shortcut> | |
</Header> | |
<Snippet> | |
<Code Language="CSharp"> | |
<![CDATA[ | |
Console.WriteLine("Press any key to quit..."); | |
Console.ReadKey();]]> | |
</Code> | |
</Snippet> | |
</CodeSnippet> | |
</CodeSnippets> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
%USERPROFILE%\Documents\Visual Studio 2013\Code Snippets\Visual C#\My Code Snippets
.snippet