1. 程式人生 > >如何在sublime text中快速運行瀏覽web/html頁面

如何在sublime text中快速運行瀏覽web/html頁面

tool ide efault bin album googl sublime 菜單欄 ont

安裝View In Browser插件

快捷鍵 Ctrl+Shift+P(菜單欄Tools->Command Paletter),輸入 pcip選中Install Package並回車,輸入View In Browser的插件回車就安裝了

註意左下角的小文字變化,會提示安裝成功

技術分享 技術分享

設置快捷鍵:

第一步。
Preferences—Key Bindings—User.
然後就跳出一個空白頁面。
第二部,將以下代碼鍵入。

[
//ie
{
"keys": ["f2"],
"command": "side_bar_files_open_with",
"args": {
"paths": [],
"application": "C:\\Program Files (x86)\\Internet Explorer\\iexplore.exe",
"extensions": ".*"
}
},
//chorme
{
"keys": ["f1"],
"command": "side_bar_files_open_with",
"args": {
"paths": [],
"application": "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe",
"extensions": ".*"
}
}
]

其中“keys”是指定快捷鍵,替換成自己想要的。
application是你瀏覽器在電腦上的目錄地址,替換了就OK了。註意是雙斜杠\\。
第三步,保存。

如何在sublime text中快速運行瀏覽web/html頁面