SourceInsight宏插件3(非常好用,强力推荐)

openfolder.em源码:(链接:https://pan.baidu.com/s/1draaimWzCHZ3vLxL--lfiQ  提取码:zyq4)

//使用资源管理器打开当前文件所在文件夹,并个高亮选中当前文件 推荐快捷键 ctrl+D

macro ToExplorerFolder()   //Alt+D
{
    buf = GetCurrentBuf();
    curFilePath = GetBufName(buf);
    cmdLine = "explorer.exe /select,@curFilePath@"; // 其实就是通过explorer.exe 命令行直接打开 eg: explorer.exe /select,C:\xx.log 会自动选中xx.log
    RunCmdLine(cmdLine, Nil, 0);
}

//在sourceinsight的宏语言中,@str@ 可以连接两个字符串

代码非原创,如有侵权,请联系删除

猜你喜欢

转载自www.cnblogs.com/hwli/p/10163790.html
今日推荐