Sublime中View in Browser功能不生效問題及解決
View in Browser功能不生效問題
安裝玩view in browser插件后,在文檔中點擊郵件的view in browser 不生效
解決方法如下
1、打開preferences
-->package setting--> view in browser -->settings-default,復制文件內(nèi)容到settings-users中;因為settings-default文件是只讀的
2、根據(jù)本地瀏覽器的所在地址
修改settings-user文件中的地址
{ "posix": { "linux": { "firefox": "firefox -new-tab", "chrome": "google-chrome", "chrome64": "google-chrome", "chromium": "chromium" }, "linux2": { "firefox": "firefox -new-tab", "chrome": "google-chrome", "chrome64": "google-chrome", "chromium": "chromium" }, "darwin": { "firefox": "open -a \"/Applications/Firefox.app\"", "safari": "open -a \"/Applications/Safari.app\"", "chrome": "open -a \"/Applications/Google Chrome.app\"", "chrome64": "open -a \"/Applications/Google Chrome.app\"", "yandex": "open -a \"/Applications/Yandex.app\"" } }, "nt": { "win32": { "firefox": "C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe -new-tab", "iexplore": "C:\\Program Files\\Internet Explorer\\iexplore.exe", "chrome": "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe", "chrome64": "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe", "yandex": "%Local AppData%\\Yandex\\YandexBrowser\\browser.exe" } }, "browser": "chrome" }
3、修改文件最后的browser
比如以上代碼就是設(shè)置了chrome瀏覽器的默認打開方式,這樣就可以通過右鍵點擊文檔然后點擊view in browser正常打開chrome進行預覽了
4、如果需要通過快捷鍵快速打開
可以通過preference-->key bindings中添加以下信息,根據(jù)自己需要修改快捷鍵組合
[ ? ? { "keys": [ "ctrl+alt+v" ], "command": "view_in_browser" }, ? ? { "keys": [ "ctrl+alt+f" ], "command": "view_in_browser", "args": { "browser": "firefox" } }, ? ? { "keys": [ "ctrl+alt+c" ], "command": "view_in_browser", "args": { "browser": "chrome" } }, ? ? { "keys": [ "ctrl+alt+i" ], "command": "view_in_browser", "args": { "browser": "iexplore" } }, ? ? { "keys": [ "ctrl+alt+s" ], "command": "view_in_browser", "args": { "browser": "safari" } } ]
好啦設(shè)置完成。
以上為個人經(jīng)驗,希望能給大家一個參考,也希望大家多多支持腳本之家。
相關(guān)文章
xmlHttp ie6下不跨域還提示沒有權(quán)限,ie8下不會有這錯誤
昨天晚上叫我好弄啊,最后發(fā)現(xiàn)原因是我url太長了,最后發(fā)現(xiàn)URL在2070B左右就不行了2009-04-04transform實現(xiàn)HTML5 video標簽視頻比例拉伸實例詳解
這篇文章主要介紹了transform實現(xiàn)HTML5 video標簽視頻比例拉伸的相關(guān)資料,需要的朋友可以參考下2016-09-09Git恢復之前版本的三種方法之reset、revert、rebase詳解
這篇文章主要介紹了Git恢復之前版本的三種方法之reset、revert、rebase解讀,具有很好的參考價值,希望對大家有所幫助。如有錯誤或未考慮完全的地方,望不吝賜教2023-03-03關(guān)于postman上傳文件執(zhí)行成功而使用collection runner執(zhí)行失敗的問題
這篇文章主要介紹了關(guān)于postman上傳文件執(zhí)行成功而使用collection runner執(zhí)行失敗的問題,本文通過圖文并茂的形式給大家介紹的非常詳細,對大家的學習或工作具有一定的參考借鑒價值,需要的朋友可以參考下2021-12-12詳解Visual Studio使用Git忽略不想上傳到遠程倉庫的文件
這篇文章主要介紹了Visual Studio使用Git忽略不想上傳到遠程倉庫的文件,本文通過圖文實例相結(jié)合給大家介紹的非常詳細,對大家的學習或工作具有一定的參考借鑒價值,需要的朋友可以參考下2020-11-11編寫高質(zhì)量代碼的30條黃金守則(首選隱式類型轉(zhuǎn)換)
這篇文章主要介紹了編寫高質(zhì)量代碼的30條黃金守則(首選隱式類型轉(zhuǎn)換),本文通過實例代碼給大家介紹的非常詳細,對大家的學習或工作具有一定的參考借鑒價值,需要的朋友可以參考下2020-08-08