1, open the Code Manager
2, open after you can see the following figure shows
3, copy and paste the path, go to the folder
Add a TXT file, copy and paste the following text
<?xml version= "1.0" encoding= "Utf-8"?> <codesnippets "xmlns=" Schemas.microsoft.com/visualstudio/2005/codesnippet "> <codesnippet format=" 1.0.0 "> <Header> ; Code Snippets for title>ck</title> <Shortcut>ck</Shortcut> <description>console.readkey </des cription> <Author>jinglingzi</Author> <SnippetTypes> <snippettype>expansion
</SnippetType> </SnippetTypes> </Header> <Snippet> <Declarations> <literal editable= "false" > <ID>SystemConsole</ID> <function>simpletypename (g Lobal::system.console) </Function> </Literal> </Declarations> <code language= "Csha RP "><! [cdata[$SystemConsole $. Readkey (); $end $]]> </Code> </Snippet> </CodeSnippet> </codesnippets>
Change the suffix name of the file to. Snippet.
4, where you write the code, CK and then the two tab keys, Console.readkey came out.
Skills:
5, <code language= "CSharp" ><! [cdata[$SystemConsole $. Readkey (); $end $]]>
In this line of code, $end $, which is where the cursor stops.
6, I actually will not write code snippets, that is, the CW code fragment copy paste, bold changes after the successful.
May everyone's study be a pleasant one.