sublime text3配置html环境

时间:2021-03-31 05:21:12

1、安装View in Browser

2、配置快捷键

[1]Preferences—Key Bindings—User.

[2]插入代码
 [
//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了。注意是双斜杠\\。
[3]保存。