Source nsight 宏功能快捷用法分享.docVIP

  • 3
  • 0
  • 约9.03千字
  • 约 6页
  • 2016-10-07 发布于贵州
  • 举报
Source nsight 宏功能快捷用法分享

Source Insight宏功能使用分享 说明:宏文件SO.em实现一些编码程中能会到的功能如添加文件头、函数说明和宏定义等使用时能自动添加文件名、函数名和当前日期SO_Input_MyName——输入创建者名字。 点击此命令后弹出提示框,根据提示输入创建者的名字,例如输入“zhicheng”。 SO_Input_MyMode——输入模块名称(即所开发的游戏的名称)。 点击此命令弹出提示框,根据提示输入模块的名称,例如输入“Angry Bird”。 SO_Input_Macro——输入使用的宏。 根据提示框输入你想使用的宏,例如是初次开发,属于版本1,故输入V1,最终会产生“__SO_Angry Bird_V1__”这样的宏开关。 SO_Insert_File_Header_Info——插入头文件信息。 当创建了AngryBird.h和AngryBird.c空文件后,可以点击此命令产生文件相关信息。对于“.c”文件会产生如下信息: 对于“.h”文件则会产生如下这样的信息: 则我们写程序的时候只需要在规定的信息下加入自己的代码即可。 SO_Insert_Function_Header_Info——插入函数信息。 当写函数时,选中函数名,点击此命令则会在函数头部产生如上信息,可以在描述部分写些描述。 SO_Insert_Simple_Comment——将选中的代码部分用“/* */”的方式注释。 当想要将自己写的内容采用“/* */”的方式注释,这选中这些部分并点击此命令。 SO_Code_Add——加入你自己的代码 SO_Code_Remove——将选中的代码部分使用你自己的宏注释掉 SO_Code_Replace_Or_Modify——将选中的代码部分替换成自己的代码 SO_Comment_Mark——简单标记修改的记录 SO_Comment_Block——采用“//”方式注释选中的代码 SO_Comment_Unblock——取消“//”方式注释的代码 在source insight中加入这些指令的步骤: 打开source insight,Project-Open Project... 打开Base工程(该工程一般在我的文档/Source Insight/Projects/Base中)SO.em放入这个目录下。 Project-Add and Remove Project Files... 加入宏文件(即SO.em)Options-Menu Assignments 打开Menu Assignments窗口在Command中输入Macro选中要使用的宏添加到合适的菜单中 Options- Key Assignments打开Key Assignments窗口,在Command中输入 implementation of corrective tasks for the new problems found in a timely manner into the special rectification and rectification category. In-depth summary of good practices and good experience in educational practice, good around the typical, continue to promote the rectification, to prevent repeated rebound, use of the results of the activities, timely organization look back again. The theoretical results, continuously consolidate and deepen and expand educational practice to achieve the system results, practical results. Three, the main problems and rectification measures focus on rectification goals, determined to honor the commitment rectification measures to build long-term mechanism style construction bureau Party, improve the ideological style The construction and workin

文档评论(0)

1亿VIP精品文档

相关文档