-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathescapekey.snippet
30 lines (30 loc) · 1.14 KB
/
escapekey.snippet
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>anykey</Title>
<Shortcut>anykey</Shortcut>
<Description>Code snippet for Escape Key to End Prog</Description>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
</Header>
<Snippet>
<Declarations>
<Literal>
<ID>input</ID>
<ToolTip>variable for console input</ToolTip>
<Default>input</Default>
</Literal>
<Literal Editable="false">
<ID>SystemConsole</ID>
<Function>SimpleTypeName(global::System.Console)</Function>
</Literal>
</Declarations>
<Code Language="csharp"><![CDATA[
Console.WriteLine("Press any key to exit.");
Console.ReadKey(true);$end$]]>
</Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>