SideBarEnhancements本是加強側邊欄的插件,這裏將教你們如何用來作sublime text 3瀏覽器預覽插件,並可自定義瀏覽器預覽的快捷鍵。chrome
第一步:安裝此插件,搜索相關教程,本博客有說明瀏覽器
第二步:安裝好之後點擊工具欄的preferences > package setting > side bar > Key Building-User,鍵入如下代碼app
[ide
/*{ "keys": ["alt+f12"], "command": "side_bar_open_in_browser", "args":{"paths":[], "type":"production", "browser":""} },*/工具
{ "keys": ["ctrl+shift+c"], "command": "copy_path" }, ui
//chrome { "keys": ["f1"], "command": "side_bar_files_open_with", "args": { "paths": [], "application": "C://Program Files (x86)//Google//Chrome//Application//chrome.exe", "extensions":".*" } }, spa
//firefox { "keys": ["f2"], "command": "side_bar_files_open_with", "args": { "paths": [], "application": "E://軟件//Firefox//firefox.exe", "extensions":".*" //匹配任何文件類型 } }, firefox
//ie { "keys": ["f3"], "command": "side_bar_files_open_with", "args": { "paths": [], "application": "C://Program Files//Internet Explorer//iexplore.exe", "extensions":".*" } }, 插件
]教程
這裏設置按Ctrl+Shift+C複製文件路徑,按F1~F3分別在chrome,firefox,IE瀏覽器預覽效果,固然你也能夠本身定義喜歡的快捷鍵,最後注意代碼中的瀏覽器路徑要以本身電腦裏的文件路徑爲準。