emacs常用配置-注释/反注释C++代码
2012-10-06 23:26
323 查看
.emacs配置如下:
备注:
使用Ctrl+; 组合键,当光标放在行的始端,或者行的中间位置,即为注释该行代码
当光标放在行的末端,即为给该行代码添加注释。
效果如下图:
参考链接:
http://cmdblock.blog.51cto.com/415170/557978
(defun qiang-comment-dwim-line (&optional arg) "Replacement for the comment-dwim command." (interactive "*P") (comment-normalize-vars) (if (and (not (region-active-p)) (not (looking-at "[ \t]*$"))) (comment-or-uncomment-region (line-beginning-position) (line-end-position)) (comment-dwim arg))) (global-set-key (kbd "C-;") 'qiang-comment-dwim-line)
备注:
使用Ctrl+; 组合键,当光标放在行的始端,或者行的中间位置,即为注释该行代码
当光标放在行的末端,即为给该行代码添加注释。
效果如下图:
参考链接:
http://cmdblock.blog.51cto.com/415170/557978
相关文章推荐
- Emacs配置C/C++-mode的代码智能提示和自动补全
- 《C++精英内参之程序员高效指南》-11常用的读代码方法除了写注释的,还有其他方法
- C++中一些常用的容器的方法小结(附详细代码及详细注释)
- emacs常用配置 c/c++源文件格式化
- Emacs配置C/C++-mode的代码智能提示和自动补全
- rose2003的 c++ 代码生成环境配置
- 使用VAssistX为VS2008 c++代码添加函数头注释http://blog.sina.com.cn/s/blog_4aff4b970101bfqs.html
- emacs新手配置基本c/c++编程环境
- eclipse工具使用 (代码注释 工具配置)
- 改变Emacs下的注释代码方式以支持当前行(未选中情况下)的注释/反注释
- Emacs 24.4 配置C++智能提示
- 如何用Emacs编译C++代码
- Android 编写多线程代码常用接口及官方注释
- 提交代码到SVN,注释必填的配置
- 随机森林代码注释(C++版本)
- Redis 学习(配置文件和常用命令注释)
- swoole常用配置设置(新手得细看,里边不少的注释是自己加上的)
- new用法之常用格式c++代码
- boost xpressive库,介于正则和bnf库之间的混血。显示c/c++代码注释部分。
- halcon程序生成C++代码相关配置