Source Insight 4 使用 quicker.em
目录
- 一、SI4 安装quicker.em
- 二、quicker.em 代码
- 三、quicker.em 使用说明
一、SI4 安装quicker.em
Source Insight有很多宏可以用,这里介绍的宏是quicker.em这个宏,它是华为的一个员工写的,很实用。
安装quicker.em宏
(1) 打开base这个工程Project->Open Project,选择base工程,即可打开;
(2) 将宏文件quicker.em添加到该base工程中;
(3) 设置宏的快捷方式:Options->Key Assignments,找到Marco:AutoExpand,添加快捷键即可,一般推介用Ctrl+Enter组合键。
HeaderFileCreate,这个宏功能用于自动创建一个.c文件的头文件。
(1) 创建自定义快捷菜单Options->Menu Assignments,选择Macro:HeaderFileCreate这一项,将它添加到右边Menu项的Work下,然后点Insert插入,点OK即可。
(2) 打开该.c文件,在work栏就能看到我们刚才添加的自定义快捷菜单HeaderFileCreate,点击它,就自动生产头文件了。
二、quicker.em 代码
quicker.em 源码链接,提取码:5wto
链接:https://pan.baidu.com/s/10vPoYO9V5BGort67Gd21wA
提取码:5wto
三、quicker.em 使用说明
在文件空白处输入 quicker.em 支持的命令,按下 Ctrl+Enter 即可。
如:输入help ,按下 Ctrl+Enter 显示 quicker.em 支持的命令如下:
*====== List Quicker supports commands ========**----------------------------------------------*** /* auto fill comment according to standard C format* // auto fill comment according to standard C format* { auto add right curly bace** name auto record author's name* if auto insert if condition statements template* ef auto insert else if condition statements template* ife auto insert if/else condition statements template* ifs auto insert if/else if/else condition statements template* else/ei auto insert else statements template** switch/sw auto insert switch/case statements template* case/ca auto insert case/break statements template** for auto insert for loop statements template* fo auto insert for loop statements template* while/wh auto insert while loop statements template* do auto insert do/while loop statements template** func/fu auto insert function header description template* file/fi auto insert file header description template* hi auto insert new history record in history comment* struct/st auto insert typedef struct statements template* enum/en auto insert typedef enum statements template** ap auto insert problem number and description comment** pn set problem number used by below command** ab auto insert add begin description for assigned PN comment* ae auto insert add end description for assigned PN comment* db auto insert delete begin description for assigned PN comment* de auto insert delete end description for assigned PN comment* mb auto insert modify begin description for assigned PN comment* me auto insert modify end description for assigned PN comment* abg auto insert add begin and end description for assigned PN comment* mbg auto insert modify begin and end description for assigned PN comment* dbg auto insert delete begin and end description for assigned PN comment** hd auto create .h header file for current .c file* hdn auto create new .h header file for current .c file** key list Source Insight default shortcut keys* cmd/help list Quicker supports commands just this showed** #if auto insert #if statements template* #ifd/#ifdef auto insert #ifdef statements template* #ifn/#ifndef auto insert #inndef statements template** cpp auto insert extern C statements template* tab auto expand tab to assigned spaces**----------------------------------------------**======= End Quicker supports commands ========*
如:输入file (创建文件说明),按下 Ctrl+Enter 显示如下:
/******************************************************************************
*
* 版权所有(c),2019-2099,XXX公司
*
*******************************************************************************
*
* 文件名称:XXX.c
* 版 本 号:V1.0
* 作 者:XXX
* 生成日期:2021年7月7日
*
* 功能描述:XXX
*
* 修改历史:
* 1. 日 期:2021年7月7日
* 作 者:XXX
* 修改内容:创建文件
*
******************************************************************************//*----------------------------------------------** 标准库头文件 **----------------------------------------------*/
#include <xxx.h>/*----------------------------------------------** 非标准库头文件 **----------------------------------------------*/
#include "xxx.h"/*----------------------------------------------** 宏定义 **----------------------------------------------*//*----------------------------------------------** 数据类型定义 **----------------------------------------------*//*----------------------------------------------** 常量定义 **----------------------------------------------*//*----------------------------------------------** 全局变量定义 **----------------------------------------------*//*----------------------------------------------** 函数声明 **----------------------------------------------*//*----------------------------------------------** 函数实现 **----------------------------------------------*/
说明:中文模式下需设置字体等宽,否则中文显示格式比较乱
Source Insight 4 使用 quicker.em相关推荐
- source insight macro
https://www.sourceinsight.com/download/macro-files/ 为了提高代码编辑效率,source insight提供了macro功能,非常方便. Source ...
- Source Insight中Quicker.em的使用方法
1.安装方法 Source Insight有很多宏可以用,这里介绍的宏是quicker.em这个宏,它是华为的一个员工写的,很实用. 1)安装quicker.em宏 一.打开base这个工程Proje ...
- source insight 安装Quicker.em插件
Quicker.em插件的安装和使用 一. 将quicke.em文件添加到sourceinsight 安装目录的base目录下 二.打开source insight base工程,将quicker.e ...
- Source Insight利用宏文件实现多行快速注释以及其他超级好用的功能
前言 Source insight是一款非常优秀的代码阅读软件,但是有些地方还是不够完善,比如没有快速对一段代码进行注释的功能.对于此类需求,我们可以借助宏来实现.网上有很多source insigh ...
- Source Insight【3】扩展宏的使用
本文将介绍Quicker.em宏扩展的功能.安装及使用,对Source Insight中宏使用进行一个初级说明. 不要被它众多的功能和宏定义所吓倒,看完怎样使用,你会发现是真的超级简单和方便! 一.功 ...
- 让Source Insight完美支持中文注释 (转)
如何让source insight支持中文注释,解决回车删除,移动光标出现乱码的问题?下面是解决方案: -------Source Insight3 中文操作(左右键.删除和后退键)支持宏------ ...
- source insight 4.0的基本使用方法
一.项目管理 1.新建一个项目 快捷键Alt+Shift+N可以打开新建项目对话框,然后根据提示填好项目存储位置,源文件位置等,然后会出现添加删除项目文件对话框,选中自己想要编辑和浏览的文件添加即可, ...
- Source Insight中的多行注释
我们经常要对一整段代码进行注释,很多代码编辑器都提供了这样的功能:用快捷键"Ctrl + /"来实现"//"的多行注释. 但是在用source insight的 ...
- source insight(SI)使用教程
文章目录 创建工程,新建项目 常用设置 搜索功能(快捷键ctrl + /)代码查找(就是那个R按钮) 关于搜索参数的详细解释 设置搜索路径的相对路径(失败了) 直接在源码包里创建项目 搜索功能2(简单 ...
最新文章
- LeetCode简单题之分糖果 II
- 如何使用Openssl 制作CA证书
- 前端开发模式--MV*
- PHP -Casbin: 支持 ACL、RBAC、ABAC 多种模型的 PHP 权限管理框架
- ssas 数据源mysql_BI之SSAS完整实战教程2 -- 开发环境介绍及多维数据集数据源准备...
- matlab积分使用
- 在Excel工作表区域内快速移动或滚动
- 利用计算机测地震是计算机的什么,计算机在气象预报、地震探测、导弹卫星轨迹等方面的应用都属于( )...
- 机器学习监督学习之分类算法---朴素贝叶斯代码实践
- Windows驱动签名,还需要使用EV代码签名证书吗?
- UNIX系统中的文件共享
- DirectX 9 游戏汉化详解
- 激光SLAM框架总结
- [转载]MySQL 中 char 与 varchar 能存多少汉字问题_-Chaz-_新浪博客
- Loadbalancer
- 电脑时间倒流,程序拒绝穿越:应用程序发生异常 未知的软件异常(0xe06d7363)
- 第一章、linux入门及基本命令(案例讲解)
- 判断当前时间是否是春节或者除夕【转载修改】
- html鼠标事件没反应,电脑鼠标点击当前页面没反应怎么办
- springboot集成Appollo动态配置