sublime text3配置html环境

1、安装View in Browser

2、配置快捷键

[1]Preferences—Key Bindings—User.

[2]插入代码
 1 [
 2 //ie
 3     {
 4         "keys": ["f2"],
 5         "command": "side_bar_files_open_with",
 6         "args": {
 7             "paths": [],
 8             "application": "C:\\Program Files (x86)\\Internet Explorer\\iexplore.exe",
 9             "extensions": ".*"
10         }
11     },
12 //chorme
13      {
14         "keys": ["f1"],
15         "command": "side_bar_files_open_with",
16         "args": {
17             "paths": [],
18             "application": "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe",
19             "extensions": ".*"
20         }
21     }
22 ]

其中“keys”是指定快捷键,替换成自己想要的。
application是你浏览器在电脑上的目录地址,替换了就OK了。注意是双斜杠\\。
[3]保存。

猜你喜欢

转载自www.cnblogs.com/andrew-address/p/12707110.html