在sublime-text中设置浏览器预览
生活随笔
收集整理的這篇文章主要介紹了
在sublime-text中设置浏览器预览
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
配置在Chrome,Firefox中打開
安裝?SideBarEnhancements
然后通過ctrl + k, ctrl + b打開側邊欄,在側邊欄的文件中右擊,找到 open width -> edit applications
然后在這里邊設置firefox打開的方式。
?
application : 路徑要修改為自己默認安裝的路徑。?
[????{"id":?"side-bar-files-open-with",
????????"children":
????????[
????????????//application?firefox
????????????{
????????????????"caption":?"firefox",
????????????????"id":?"side-bar-files-open-with-firefox",
????????????????"command":?"side_bar_files_open_with",
????????????????"args":?{
????????????????????????????"paths":?[],
????????????????????????????"application":?"D:\\Program?Files\\Mozilla?Firefox\\firefox.exe",
????????????????????????????"extensions":".*"?//any?file?with?extension
????????????????????????}
????????????},
????????????{"caption":"-"},
????????????{
????????????????"caption":?"chrome",
????????????????"id":?"side-bar-files-open-with-chrome",
????????????????"command":?"side_bar_files_open_with",
????????????????"args":?{
????????????????????????????"paths":?[],
????????????????????????????"application":?"C:\\Program?Files\\Google\\Chrome\\Application\\chrome.exe",
????????????????????????????"extensions":".*"?//any?file?with?extension
????????????????????????}
????????????}
????????]
????}
]
配置在IE中打開
Key bindings -> User
[?????{?"keys":?["ctrl+shift+c"],?"command":?"copy_path"?},
?????{?"keys":?["alt+f12"],?"command":?"open_in_browser"?},
?????{?"keys":?["f12"],?"command":?"side_bar_files_open_with",
?????????????"args":?{
????????????????"paths":?[],
????????????????"application":?"D:\\Program?Files\\Mozilla?Firefox\\firefox.exe",
????????????????"extensions":".*"?//any?file?with?extension
????????????}?},
????{?"keys":?["ctrl+f12"],?"command":?"side_bar_files_open_with",
????????????"args":?{
????????????????"paths":?[],
????????????????"application":?"C:\\Program?Files\\Google\\Chrome\\Application\\chrome.exe",
????????????????"extensions":".*"?//any?file?with?extension
????????????}?
?????}?????
????
]
如果是其它瀏覽器,可以 ctrl+shift+c 路徑,然后直接在地址欄粘貼。
這樣就可以用這三個鍵在瀏覽中預覽頁面了:
F12 : Firefox
alt + F12 : IE
ctrl + F12 : chrome
當然,你也可以配置,其它配置器用這樣的方式預覽。
轉載于:https://www.cnblogs.com/wangluochong/p/5537478.html
總結
以上是生活随笔為你收集整理的在sublime-text中设置浏览器预览的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 你好,我想问一下日语论文答辩老师一般会问
- 下一篇: video,audio用法小例子