zoukankan      html  css  js  c++  java
  • vs2010 仿XCode风格的头注释宏

    Sub DocumentFileHeader()

    Dim star As String
    star = "//******************************************************************************"

    ' 将添加焦点定位在文件首部
    DTE.ActiveDocument.Selection.StartOfDocument()

    ' 添加一个版权说明
    'DTE.ActiveDocument.Selection.Text = star
    DTE.ActiveDocument.Selection.NewLine()
    DTE.ActiveDocument.Selection.Text = "// "
    DTE.ActiveDocument.Selection.NewLine()
    DTE.ActiveDocument.Selection.Text = "// " + DTE.ActiveDocument.Name
    DTE.ActiveDocument.Selection.NewLine()
    DTE.ActiveDocument.Selection.Text = "// "
    DTE.ActiveDocument.Selection.NewLine()
    DTE.ActiveDocument.Selection.Text = "// " + String.Format("Created by {0} on {1:D}.", "***", Date.Now.ToString("yy-MM-dd"))
    DTE.ActiveDocument.Selection.NewLine()
    DTE.ActiveDocument.Selection.Text = "// " + String.Format("Copyright (c) {0}年 {1}. All rights reserved.", Date.Now.Year,"***")
    DTE.ActiveDocument.Selection.NewLine()
    DTE.ActiveDocument.Selection.Text = "// "
    DTE.ActiveDocument.Selection.NewLine()
    'DTE.ActiveDocument.Selection.Text = star
    DTE.ActiveDocument.Selection.NewLine()
    End Sub

  • 相关阅读:
    存储型 XSS 原理复现
    反射型 XSS 原理复现
    HTTP 简易理解
    Markdown 流程图语法
    Dirsearch 快速开始
    sqlmap 快速开始
    SQL 注入原理
    XSS 原理
    51nod 1835 完全图
    11.5 AM 请求
  • 原文地址:https://www.cnblogs.com/msdynax/p/3615936.html
Copyright © 2011-2022 走看看