Emacs中使用SRecode生成Doxygen风格的注释

来源:互联网 发布:不实名域名注册商 编辑:程序博客网 时间:2024/04/30 20:48

第一步. 开启semantic-mode

M-x semantic-mode


第二步. 引入srecode

M-: (require 'srecode)


第三布. 开启srecode-minor-mode

M-x srecode-minor-mode


第四步. 将光标移动到函数定义头上


第五部. 执行命令srecode-document-insert-function-comment

M-x srecode-document-insert-function-comment


就可以看到自动插入了Doxygen风格的注释了

/** * @name say - * @param word -  word * @return void */void say(const string& word){}


参考资源:http://stackoverflow.com/questions/19259677/using-srecode-to-generate-doxygen-comments-for-an-existing-c-file

0 0
原创粉丝点击