Source Insight 4 使用 quicker.em


一、SI4 安装quicker.em

Source Insight有很多宏可以用,这里介绍的宏是quicker.em这个宏,它是华为的一个员工写的,很实用。

  1. 安装quicker.em宏

    (1) 打开base这个工程Project->Open Project,选择base工程,即可打开;

    (2) 将宏文件quicker.em添加到该base工程中;

    (3) 设置宏的快捷方式:Options->Key Assignments,找到Marco:AutoExpand,添加快捷键即可,一般推介用Ctrl+Enter组合键。

  2. 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
*  生成日期:202177*  
*  功能描述:XXX
*  
*  修改历史:
*         1. 日    期:202177*            作    者:XXX
*            修改内容:创建文件
*  
******************************************************************************/

/*----------------------------------------------*
 *  标准库头文件                                  *
 *----------------------------------------------*/
#include <xxx.h>

/*----------------------------------------------*
 *  非标准库头文件                                *
 *----------------------------------------------*/
#include "xxx.h"

/*----------------------------------------------*
 *  宏定义                                       *
 *----------------------------------------------*/

/*----------------------------------------------*
 *  数据类型定义                                  *
 *----------------------------------------------*/

/*----------------------------------------------*
 *  常量定义                                     *
 *----------------------------------------------*/

/*----------------------------------------------*
 *  全局变量定义                                  *
 *----------------------------------------------*/

/*----------------------------------------------*
 *  函数声明                                     *
 *----------------------------------------------*/

/*----------------------------------------------*
 *  函数实现                                     *
 *----------------------------------------------*/

说明:中文模式下需设置字体等宽,否则中文显示格式比较乱

  • 4
    点赞
  • 22
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
### 回答1: Source Insight 4.0是一款著名的源代码编辑和导航工具。它提供了一种快速方便的方式来浏览和编辑大型代码项目。Source Insight 4.0具有许多强大的功能,使开发者能够更高效地进行代码编写和修改。 首先,Source Insight 4.0具有强大的代码导航功能。它可以自动分析代码之间的关联,例如函数调用、变量引用等,在一个直观的图形界面中显示代码之间的关系。这使得开发者能够更快速地浏览和理解代码结构,提高了代码阅读的效率。此外,Source Insight 4.0还提供了全局搜索和定位功能,可以快速定位到代码中的特定部分,节省了开发者的时间。 其次,Source Insight 4.0还具有代码编辑的高效功能。它支持多种常见的编程语言,并提供了智能代码补全、语法高亮、代码模板等功能,可以减少开发者编写代码的时间和工作量。Source Insight 4.0还支持代码重构功能,可以方便地修改和重组代码结构,提高代码的质量和复用性。 最后,Source Insight 4.0还支持各种版本控制工具,例如Git、Subversion等。它可以与这些工具集成,方便开发者进行代码版本管理和团队协作,避免了代码冲突和误操作。 总之,Source Insight 4.0是一款功能强大的源代码编辑和导航工具,可以提高开发者的工作效率和代码质量。它能够快速地帮助开发者浏览、编辑和管理代码,是广大开发者的得力助手。 ### 回答2: source insight4.0 quicker.em 是一款源代码编辑器,具有快速查找和导航代码的功能。它提供了强大的代码分析和编辑功能,可以帮助开发人员提高代码编写的效率和质量。 source insight4.0 quicker.em 内置了全局语法分析器和索引器,可以对整个项目进行代码扫描和分析,生成函数和变量的调用关系图,方便开发人员进行代码的理解和调试。通过代码分析功能,它可以智能提示函数和变量的使用,减少开发人员的记忆负担,并提高代码编写的准确性。 source insight4.0 quicker.em 还提供了强大的代码导航功能。开发人员可以通过快捷键或者鼠标点击,快速定位到函数或者变量的定义和引用处。这样可以方便地跳转代码,加快开发过程中的编辑和调试速度。 除此之外,source insight4.0 quicker.em 还支持多种主题和颜色方案的自定义,可以根据个人喜好进行界面的设置。它还支持多种编程语言,如C、C++、Java、Python等,可以满足不同开发人员的需求。 总之,source insight4.0 quicker.em 是一款功能强大的源代码编辑器,具有快速查找和导航代码的功能,可以提高开发人员的编码效率和质量。它是开发人员的好帮手,值得推荐使用。 ### 回答3: source insight 4.0 quicker.em 是一款功能强大的源代码编辑器和浏览器。它具有快速、高效的特点,可以帮助开发者迅速地浏览、编辑和管理源代码。 首先,source insight 4.0 quicker.em 提供了强大的代码浏览功能。它可以自动解析代码结构,并根据代码的关系进行智能的导航。开发者可以快速地定位到想要查看的代码块,查找定义和引用,以及轻松地跳转到相关的函数与类。这极大地提高了代码的阅读和理解效率。 其次,source insight 4.0 quicker.em 支持快速的代码编辑。它提供了智能的代码补全功能,可以根据已输入的代码快速提示可能的代码补全选项,加快代码编写的速度。同时,它还支持代码自动对齐、代码格式化等功能,帮助开发者保持代码的规范和美观。 此外,source insight 4.0 quicker.em 还提供了强大的代码搜索和替换功能。开发者可以根据指定的条件,快速地搜索整个项目中的代码,并支持模糊搜索和正则表达式搜索,精确找到需要的代码片段。并且,它还可以快速地进行代码的批量替换,大幅度提高了代码重构的效率。 总之,source insight 4.0 quicker.em 是一款功能全面、操作简单且高效的源代码编辑器和浏览器。它可以帮助开发者更加快速地浏览、编辑和管理源代码,提高代码开发的效率和质量。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值