SideBarEnhancements
本是增强侧边栏的插件,这里将教大家如何用来做sublime text 3
浏览器预览插件,并可自定义浏览器预览的快捷键。
安装此插件,点击工具栏的preferences > package setting > side bar > Key Building-User
,输入以下代码,按F1~F3分别在chrome
,firefox
,edge
浏览器预览效果,也可以自己定义快捷键,最后注意代码中的浏览器路径要以自己电脑里的文件路径为准。
//chrome
{ "keys": ["f1"], "command": "side_bar_files_open_with",
"args": {
"paths": [],
"application": "//chrome路径",
"extensions":".*"
}
},
//firefox
{ "keys": ["f2"], "command": "side_bar_files_open_with",
"args": {
"paths": [],
"application": "//firefox路径",
"extensions":".*"
}
},
//edge
{ "keys": ["f3"], "command": "side_bar_files_open_with",
"args": {
"paths": [],
"application": "C:\\Users\\**\\Desktop\\Microsoft Edge.lnk",//edge这边我只找到了lnk(快捷方式)
"extensions":".*"
}
}