这个神器上手好几天了,谁叫我是折腾党。下了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
}
}