paip.提升用户体验---c++ ide 自动化注释插件的开发...

介绍了一款名为AtiNote的C++ IDE自动化注释插件的开发过程及功能,该插件能自动生成文件头注释及补充方法注释,提高编程效率。
paip.提升用户体验---c++  ide 自动化注释插件的开发...


作者Attilax ,  EMAIL:1466519819@qq.com 
来源:attilax的专栏
地址:http://blog.youkuaiyun.com/attilax


qt 里面,输入 /**{Entr} 可以生成方法注释,不过只包括 * @brief operator <<  * @param str * @return ..但是不能生成文件注释....需要一个宏来完成这个操作..


但是,qt的宏只能生成一个..使用一个..太简单的兰..只好自己插件扩展兰...


插件AtiNote,功能:
1.生成文件头注释   /**f  ,
2.补充方法注释   @x




主要流程.. 
///////////////////


 ;#Persistent
;SendInput ,demo 9/29/2013 12:12 PM  2013-09-DD 12:13 PM 2013-09-29 12:13:35
FormatTime, CurrentDateTime,, yyyy-MM-dd HH:mm:ss    ; It will look like 9/1/2005 3:53 PM
;SendInput %CurrentDateTime%
FormatTime, copy_time,, yyyy-MM-dd
$filenote =
(
/**
 @file
@bug  arg timer ,should hook window
@todo heyeug hookwind yaozwl .\n
qt grammahi light c927--http://kate-editor.org/\n
@author  attilax <1466519819@qq.com>
 @date c925 %CurrentDateTime%
  @brief  none_jyedwe_shwamin
 @note      detail note start


\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\//\n
\\\     COPYRIGHT NOTICE\n
\\\    Copyright (c) %copy_time%,  ATTILAX\n
\\\    All rights reserved.\n
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/\n
 *  This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation; either version 2 of
 * the License, or (at your option )any later version.


 *
 *SOME DETAIL DESCRIPT  d
*/
)


$title=Qt Creator
$classx= QWidget
;#IfWinActive ahk_class Notepad
;#IfWinActive,Qt Creator
#IfWinActive,ahk_class QWidget
::btw::This replacement text will appear only in Notepad.


::/**f::




SendInput,%$filenote%
;c++ marcro insert file note
return




#IfWinActive,ahk_class QWidget
::@x::
StringReplace, OutputVar, $filenote,  @file ,
StringReplace, OutputVar, OutputVar,  @brief ,
StringReplace, OutputVar, OutputVar, */ ,
StringReplace, OutputVar, OutputVar, /** ,
SendInput,%OutputVar%


return









评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值