source insight的一些常用操作

来源:互联网 发布:face book是什么软件 编辑:程序博客网 时间:2024/05/22 18:56

 
1、快捷键的设置

Options菜单 -->Custom Command
1.点右边Add钮、填入新自定义命令名称,或下拉左边Commands、选择命令进行修改
2.Run框、填入待执行命令行,可含有特殊元字符,见后面的元字符表
3.Dir框、执行命令行时应处的目录,如不填,以源代码文件所在目录为命令执行目录
4.勾选Output框的Capture Output、输出被捕捉,如果勾选Paste Output,输出被粘贴
5.勾选Control Group框中的Save Files First、SIS会在运行命令前先检查文件是否保存
6.勾选Control Group框中的Pause When Done、SIS会在命令结束后暂停、方便检查
7.勾选Source Links in Output框中的Parse Source Links

快捷键打开当前活动文档

1.打开当前编辑的文件夹选中文件

 

ShellExecute open explorer /select,%f


 2.其他快捷键


 另外:查看log"C:/Program Files/TortoiseSVN/bin/TortoiseProc.exe" /command:log /path:%f /notempfile /closeonenddiff"C:/Program Files/TortoiseSVN/bin/TortoiseProc.exe" /command:diff /path:%f /notempfile /closeonend取得锁定(check out)"C:/Program Files/TortoiseSVN/bin/TortoiseProc.exe" /command:lock /path:%f /notempfile /closeonend提交(check in)"C:/Program Files/TortoiseSVN/bin/TortoiseProc.exe" /command:commit /path:%f /notempfile /closeonend更新(update)"C:/Program Files/TortoiseSVN/bin/TortoiseProc.exe" /command:update /path:%f /notempfile /closeonend更新整个目录(update all)"C:/Program Files/TortoiseSVN/bin/TortoiseProc.exe" /command:update /path:*.* /notempfile /closeonend取消锁定(undo check out)"C:/Program Files/TortoiseSVN/bin/TortoiseProc.exe" /command:revert /path:%f /notempfile /closeonend在ultriEdit中编辑"C:/Program Files/UltraEdit-32/uedit32" %f在vim中编辑并定位到当前行"C:/Program Files/Vim/vim63/gvim.exe" --remote-silent +%l %f 


 

 2、查询

Search Method中有四种可选的查找方式:Simple String、Regular Expression、 Keyword Expression和LookUp Reference。

1.Simple String是最普通的查找方式,可以查找文件中出现的任意字符或字符,甚至可以查找 _upap || u 这样的字符串,但是在工程较大时,查找过程会较慢。 
2.Regular Expression查找正则表达式方式查找,需要了解正则表达式。 
3.Keyword Expression 类似于互联网搜索查询
4.LookUp Reference搜索符号引用
Keyword Expression和LookUp Reference查找的结果基本相同,但是显示方式略有差异。这两种方式都是使用SI预先建立的数据库,查找起来速度相当快。但通常这种速度只对在查找标识符时有明显效果。对于像函数名,变量名等的查找,强烈建议使用这两种方式进行查找。

1. 使用LookUp Reference的几个选项

查找参数:
whole words only :                  全字匹配查找
case sensitive  :                   区分大小写
project wide  :                         项目内查找
include subdirectories :          包含子目录查找
skip inactive code :                跳过无效代码查找
skip comments  :                   跳过注释查找
search only comments :        仅在注释在查找

原创粉丝点击