zoukankan      html  css  js  c++  java
  • Cnic.Snippet

    <?xml version="1.0" encoding="utf-8"?>
    <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
        <CodeSnippet Format="1.0.0">
            <Header>
                <Title>usingSR</Title>
                <Shortcut>usingSR</Shortcut>
                <Description>StreamReader 循环的代码段</Description>
                <Author>Microsoft Corporation</Author>
                <SnippetTypes>
                    <SnippetType>Expansion</SnippetType>
                    <SnippetType>SurroundsWith</SnippetType>
                </SnippetTypes>
            </Header>
            <Snippet>
                <Declarations>
                    <Literal>
                        <ID>path</ID>
                        <ToolTip>路径</ToolTip>
                        <Default>@""</Default>
                    </Literal>
                </Declarations>
                <Code Language="csharp"><![CDATA[
                using (StreamReader sr = new StreamReader($path$))
                {
                    string line = sr.ReadLine();
                    while (line != null)
                    {
                        $end$
                        line = sr.ReadLine();
                    }
                }]]>
                </Code>
            </Snippet>
        </CodeSnippet>
    </CodeSnippets>
    <?xml version="1.0" encoding="utf-8"?>
    <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
        <CodeSnippet Format="1.0.0">
            <Header>
                <Title>usingSW</Title>
                <Shortcut>usingSW</Shortcut>
                <Description>StreamWriter 循环的代码段</Description>
                <Author>Microsoft Corporation</Author>
                <SnippetTypes>
                    <SnippetType>Expansion</SnippetType>
                    <SnippetType>SurroundsWith</SnippetType>
                </SnippetTypes>
            </Header>
            <Snippet>
                <Declarations>
                    <Literal>
                        <ID>path</ID>
                        <ToolTip>路径</ToolTip>
                        <Default>@""</Default>
                    </Literal>
                    <Literal>
                        <ID>msg</ID>
                        <ToolTip>msg</ToolTip>
                        <Default>""</Default>
                    </Literal>
                </Declarations>
                <Code Language="csharp"><![CDATA[
                using (StreamWriter sw = new StreamWriter($path$)
                {
                    sw.WriteLine($msg$);
                    $end$
                }]]>
                </Code>
            </Snippet>
        </CodeSnippet>
    </CodeSnippets>
  • 相关阅读:
    oracle补丁升级
    Vmware虚拟机设置静态IP地址
    VMware 虚拟机安装
    中国城市json
    安装vue
    中国省份城市数据
    ajax表单提交post(错误400) 序列化表单(post表单转换json(序列化))
    自动搭建ssm项目
    小米root
    程序员职业规划(一篇来自"阿里Java工程师"对工作3年左右程序员的职业建议和应该掌握的职业技能)
  • 原文地址:https://www.cnblogs.com/CodeBase/p/3740337.html
Copyright © 2011-2022 走看看