您的位置:首页 > 其它

Sublime 利用 SideBarEnhancements 插件 实现用快捷键打开文件

2015-02-06 17:01 134 查看
这个神器上手好几天了,谁叫我是折腾党。下了SideBarEnhancements插件后,可以实现Chrome打开网页快捷键,今天要写VBS脚本,就想:为什么不能像VS一样按F5来执行呢?于是我编写了如下快捷方式
{
"caption": "Run",
"id": "side-bar-files-open-with-Run",

"command": "side_bar_files_open_with",
"args": {
"paths": [],
"application": "C:\\Windows\\System32\\cmd.exe",
"extensions":".*", //any file with extension
"args":[]
},
"open_automatically" : false // will close the view/tab and launch the application
},


这不难题来了,cmd.exe竟然无效,我要一般打开文件都是右键选择打开,不知道要调用哪个程序啊。上网搜寻无果后,又继续折腾,换成了explorer.exe,竟然可以执行了!

接下来就把快捷键设置成F5就OK啦

首选项-案件绑定-用户 添加如下代码就可以了

{ "keys": ["f5"], "command": "side_bar_files_open_with",
"args": {
"paths": [],
"application": "C:\\Windows\\System32\\explorer.exe",
"extensions":".*" //any file with extension
}
}


现在按F5,就可以执行VBS程序啦,是不是很方便呢!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐