sublime 实现浏览器预览功能
生活随笔
收集整理的這篇文章主要介紹了
sublime 实现浏览器预览功能
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1. 安裝SideBarEnhancements插件
ctrl+shift+p?—>?Install Package?—> 找到SideBarEnhancements
2. 配置預覽快捷鍵
Preferences?—>?Key Bindings - User?將以下代碼復制到數組中。
// chrome { "keys": ["f2"], "command": "side_bar_files_open_with","args": {"paths": [],"application": "C:/Program Files (x86)/Google/Chrome/Application/chrome.exe","extensions":".*"}},// firefox { "keys": ["f3"], "command": "side_bar_files_open_with","args": {"paths": [],"application": "D:/Program Files (x86)/Mozilla Firefox/firefox.exe","extensions":".*"} },// ie{ "keys": ["f4"], "command": "side_bar_files_open_with","args": {"paths": [],"application": "C:/Program Files/Internet Explorer/iexplore.exe","extensions":".*"} }上面的代碼中有兩處需要注意的地方,一個是keys表示快捷鍵,即f2可以啟動chrome進行預覽。另一個是application,表示瀏覽器所在的安裝路徑,只有路徑配置正確,才能夠正常調用瀏覽器。
總結
以上是生活随笔為你收集整理的sublime 实现浏览器预览功能的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 怎么制作GIF动图?用这两个工具,生成G
- 下一篇: 怎么把照片转换成jpg格式?这个好方法拿