source Insight常用自定义命令( custom commands )

    技术2022-05-11  92

    在Source Insight中添加自定义功能的步骤如下:1.Source Insight中,Options->Custom Commands...->Add...,New Command name 随便写,我的是"Edit with Vim" 2.Run中写入: "C:/Program Files/Vim/vim63/gvim.exe" --remote-silent +%l %f 意思是在当前已经打开的gvim窗口里面打开当前的文件,并且跳转到指定行 %l为当前的行号,%f为文件名 使用 --remote-silent 的作用是,如果已经打开了对应文件,就不会打开第二次,而是在已经打开的文件里跳转到对应行 3.还是同一个对话框里面,选择Keys->Assign New Key...->按F12,如果你已经将F12设置给其他命令,选择其他的按键就行了

    下面是一些常用自定义功能:( CUSTOM COMMANDS )

    打开资源管理器并选中当前文件ShellExecute open explorer /e,/select,%f查看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 

    汇总其他小技巧:

    让{ 和 } 不缩进:

    Options->Document Options->Auto Indent->Indent Open Brace/Indent Close Brace

    hao space: SourceInsight技巧1、按住"ctrl", 再用鼠标指向某个变量,点击一下,就能进入这个变量的定义。 2、今天把一个用sourceinsight排版整齐的C文件,偶然用VC打开一看,全乱了。研究了半天,发现SI对每个字符的宽度不太一致。    请教同事发现选上"view --> draft view", 就可以让每个字符的宽度一致了。快捷键是 "Alt + F12" 3、"shift+F8" 标亮所有文本中光标所在位置的单词 4、跳到某一行:"ctrl + g"

    sourceinsight使用技巧- sudaobo的专栏- Blog

    SMART TAB的用法. 解决自动缩进.单选里一定要点Smart,右边有两个复选框Indent Open Brace和Indent Close Brace,具体效果是如何的可以看SIS的HELP。不过确实以前写代码时候很头痛的问题是在SIS界面里,即使设置好了Tab Width=4,按四个空格所显示的缩进,和按TAB键的缩进位置是不同的,后者要更靠里面三个字符的位置,但在左下角看到的Col=5都是一样的。OK,现在TAB键的缩进和四个空格的缩进在SIS里面看起来就对齐咯!

    在Source Insight中快速添加注释l 


    最新回复(0)