zoukankan      html  css  js  c++  java
  • VA使用技巧

    Reserved String Meaning
    Date $DATE$ Year/month/day formatted as %04d/%02d/%02d
      $DAY$ Day of month formatted as %d
      $DAY_02$ Day of month formatted as %02d
      $DAYNAME$ Three-character abbreviation of day
      $DAYLONGNAME$ Full name of day
      $MONTH$ Month formatted as %d
      $MONTH_02$ Month formatted as %02d
      $MONTHNAME$ Three-character abbreviation of month
      $MONTHLONGNAME$ Full name of month
      $YEAR$ Year formatted as %d
      $YEAR_02$ Year formatted as %02d
    File $FILE$ Full filename with path*
      $FILE_UPPER$ Full filename with path in uppercase*
      $FILE_BASE$ Filename without path or extension*
      $FILE_BASE_UPPER$ Filename without path or extension in upper case*
      $FILE_EXT$ Filename extension*
      $FILE_EXT_UPPER$ Filename extension in upper case*
      $FILE_PATH$ Path of file*
      $FILE_PATH_UPPER$ Path of file in upper case*
    General $clipboard$ Current clipboard
      $end$ Position of caret after expansion
      $selected$ Current selection**
      $$ $
    GUID $GUID_DEFINITION$ Generated GUID formatted for use in a definition
      $GUID_STRING$ Generated GUID formatted for use in a string
      $GUID_STRUCT$ Generated GUID formatted for use in a struct
      (Note that all instances of GUID reserved words will use a singe generated GUID.)
    Refactor $GeneratedPropertyName$ Property name generated during Encapsulate Field
      $MethodArg$ One parameter of the method and its type
      $MethodArgName$ One parameter of the method
      $MethodArgType$ Type of one parameter of the method
      $MethodBody$ Body of implementation
      $MethodQualifier$ Optional qualifiers of method
      $ParameterList$ Parameters separated by commas
      $SymbolContext$ Context and name of method
      $SymbolName$ Name of method
      $SymbolPrivileges$ Access of method
      $SymbolStatic$ Keyword static or blank
      $SymbolType$ Return type of method
      $SymbolVirtual$ Keyword virtual or blank
    Time $HOUR$ Hour formatted as %d
      $HOUR_02$ Hour formatted as %02d
      $MINUTE$ Minute formatted as %02d
      $SECOND$ Second formatted as %02d


    http://www.cnblogs.com/hujianhua/archive/2013/08/18/3266020.html

    http://www.cnblogs.com/greenerycn/archive/2011/05/31/2065221.html


    在VC6.0里边。C++函数头凝视是使用一个宏完毕的。VS系列中C#在函数头输入三个反斜杠也会自己主动生成XML格式的函数头凝视。
    又懒得在VS2008中写类似于加入函数头的凝视,仅仅能依靠一些工具了,今天给大家介绍VAssistX。
    大家能够下载VAssistX插件,安装的时候一定要把VS2008关掉。

    VAssistX在这就不多做介绍了,大家能够百度或者google之。

    下面为大家介绍一下怎么加入函数头凝视
    随便打开一个C++的project,找到一个方法,右击函数名,然后依次点击“Refacto”–>“Document Method”。这个时候函数头凝视是不是已经出来了,非常方便吧。

    可是这个凝视格式是默认的,可能不适合你的项目。能够在VAssistX的选项中更改显示样式。在VS2008中点击 “VAssistX”–>”Visual VAssistX Options”然后选择Suggestions,再点击”Edit VA Snippets”
    在打开的窗体中选择Refactor Document Method。在这就能够更改你的显示样式了。

     

    1. //************************************     
    2. // 函数名称: $SymbolName$     
    3. // 函数说明:     
    4. // 作 成 者:Mr.M     
    5. // 作成日期:$DATE$     
    6. // 返 回 值: $SymbolType$     
    7. // 參    数: $MethodArg$     
    8. //************************************  


     

    这是我设置的,大家赶快试试吧。这个插件会大大的提高你的工作效率。



    我的设置

    Refactor Create Header File中设置
    
    //*************************************************
    // Copyright (c) 2011,杭州**. All rights reserved.
    // File name: $FILE_BASE$.$FILE_EXT$
    // Author: **
    // Version: 1.0 
    // Date: $DATE$
    // Description: 
    // Others:
    // History:
    //*************************************************
    
    #ifndef __$FILE_BASE_UPPER$_H__
    #define __$FILE_BASE_UPPER$_H__
    
    $selected$
    
    #endif    //__$FILE_BASE_UPPER$_H__
    
    
    Refactor Document Method
    
    //*************************************************************************
    //Description: nothing
    //Access: $SymbolVirtual$$SymbolPrivileges$$SymbolStatic$
    //@param  $MethodArgName$
    //@return $SymbolType$
    //Example:
    //Other:
    //*************************************************************************
    


  • 相关阅读:
    C/C++解题常用STL大礼包 含vector,map,set,queue(含优先队列) ,stack的常用用法
    PAT甲级1018留坑——第一个测试点未过(Dijikstar+Dfs)
    PAT甲级1019水题飘过
    微信该公众号提供的服务出现故障
    The valid characters are defined in RFC 7230 and RFC 3986
    eclipse中Web Deployment Assembly与build path作用
    Invalid bound statement (not found)
    springmvc获取bean
    mac/linux查询网络端口占用
    SiteMesh使用(2.4.2)
  • 原文地址:https://www.cnblogs.com/jhcelue/p/7269100.html
Copyright © 2011-2022 走看看