zoukankan      html  css  js  c++  java
  • [VS2005]一个简单的CodeSnippet —— 生成类的构造函数。

    VS2005的CodeSnippet,用于在类中自动生成构造函数。
     1<?xml version="1.0" encoding="utf-8" ?>
     2<CodeSnippets  xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
     3    <CodeSnippet Format="1.0.0">
     4        <Header>
     5            <Title>ctor region</Title>
     6            <Shortcut>ctorc</Shortcut>
     7            <Description>Code snippet for constructor that contains a group of region sentence</Description>
     8            <Author>Colin Han</Author>
     9            <SnippetTypes>
    10                <SnippetType>Expansion</SnippetType>
    11            </SnippetTypes>
    12        </Header>
    13        <Snippet>
    14            <Declarations>
    15                <Literal Editable="false">
    16                    <ID>classname</ID>
    17                    <ToolTip>Class name</ToolTip>
    18                    <Function>ClassName()</Function>
    19                    <Default>ClassNamePlaceholder</Default>
    20                </Literal>
    21                <Literal>
    22                    <ID>args</ID>
    23                    <Default></Default>
    24                    <ToolTip>Arguments of this constractor</ToolTip>
    25                </Literal>
    26            </Declarations>
    27            <Code Language="csharp"><![CDATA[#region Constructor
    28
    29    /// <summary>
    30    ///   Create and initialize a $classname$ object.
    31    /// </summary>
    32    public $classname$ ($args$)
    33    {
    34        $end$
    35    }
    36
    37    #endregion]]>
    38            </Code>
    39        </Snippet>
    40    </CodeSnippet>
    41</CodeSnippets>
  • 相关阅读:
    一些你可能用到的代码
    iOS 键盘下去的方法
    iOS设计模式汇总
    随笔
    Spring cloud config 分布式配置中心 (三) 总结
    Spring cloud config 分布式配置中心(二) 客户端
    Spring cloud config 分布式配置中心(一) 服务端
    jdbcUrl is required with driverClassName spring boot 2.0版本
    JpaRepository接口找不到 spring boot 项目
    解决IntelliJ “Initialization failed for 'https://start.spring.io'
  • 原文地址:https://www.cnblogs.com/Cajon/p/333846.html
Copyright © 2011-2022 走看看