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(简单 ...
最新文章
- 10.2.2移动产品离线功能等具体解释----暨4月8日移动《在离线一体化》公开课Qamp;A...
- 今晚直播 | 北邮博士生纪厚业:异质图神经网络之模型和应用
- Oracle入门(十四.15)之捕获Oracle服务器异常
- 64 装饰器函数: 母版 csrf防御机制 cookie
- 安卓系统开机过程中logo和动画
- Java并发编程:同步容器
- android 签名报错,AndroidStudio生成签名apk报错
- 玩转Bootstrap(JS插件篇)-第1章 模态弹出框 :1-2 动画过渡
- 视觉三维重建中的关键技术及代码实现视频分享
- 星期天写了点蛋疼的东西(3)
- babyion 加载obj模型_如何使用BabylonJS加载OBJ或STL模型
- SPI TFT液晶屏与Arduino Uno 连接
- iPhone iPad分辨率
- 查看redis的Value值大小
- 超实用流程图制作技巧,制作流程图so easy
- 计算机桌面图标的排列,win7电脑桌面图标排列方式如何设置,电脑桌面图标排列方式设置方法...
- Hadoop权威指南——关于Sqoop
- jQuery常用的API宝典
- Android跳转到系统通知管理页面
- 天津北大青鸟蓝白金的经历(初识)
热门文章
- JS使用localStorage缓存Js和css文件
- C语言小头风,爸爸用C语言早教,孩子逐渐崩溃,网友:这发型月薪最少40k
- 服务器运维基础一:使用hcache查看使用buff/cache的目录文件
- 服务器主板无屏装系统,1、树莓派安装系统(没有显示屏安装系统方法)
- 【离散数学】期末不挂科复习笔记
- 基于 Vmware 搭建 Ubuntu Server 编译环境(Samba + SSH + Git)
- WPS插入LaTeX伪代码
- dota2起源1和2引擎区别_DOTA2将更新起源2引擎 游戏性能大提升
- 16条你应该珍藏,没事就读读的精辟语录!
- i5 12600kf和i7 10700k选哪个