1.打开Sublime,在菜单栏找到 preferences->package control->输入install package,回车
2.在弹出的输入框里输入SideBarEnhancements 安装。
3.在菜单栏找到 preferences->package control->package settings->side bar->Key Bindings User,点击
4.复制这段代码:
`[
{
“keys”: [“f1”],
“command”: “side_bar_files_open_with”, “args”: {“application”: “C:\Ksoftware\liebao\liebao”, “extensions”: “.*”, “paths”: []}
},
{
“keys”: [“f2”],
“command”: “side_bar_files_open_with”, “args”: {“application”: “C:\Users\delll\AppData\Local\Google\Chrome\Application\chrome.exe”, “extensions”: “.*”, “paths”: []}
},
{
“keys”: [“f3”],
“command”: “side_bar_files_open_with”, “args”: {“application”: “C:\Program Files\Internet Explorer\iexplore.exe”, “extensions”: “.*”, “paths”: []}
},
{
“keys”: [“f4”],
“command”: “side_bar_files_open_with”, “args”: {“application”: “C:\Program Files (x86)\360\360safe\360AppLoader.exe”, “extensions”: “.*”, “paths”: []}
}
]
`
注意!!!各个快捷键的浏览器路径应写 你的浏览器位置,例如我想用猎豹浏览器打开,则我的路径就改为划红线的那个文件路径。
当然,这里的F1,F2 ,F3,F4都是可以更改的,换成你喜欢的快捷键就行。注意不要重复了~
桌面都是快捷图标怎么看路径?选中图标右键—属性,复制文件路径,记得把/改为\。
配置好后,重启sublime,我就能选中某个网页按F1打开网页了!