设置快捷键:
打开sublime text3->preferences->key bindings->在Default(Windows).sublime-keymap—User添加如下内容
- 在默认浏览器中显示HTML文件快捷键设置:
{ "keys": ["ctrl+shift+f5"],
"command": "open_in_browser"
},
其中ctrl+shift+f5可修改,注意设置热键时,查一下该热键中是否已经占用了,防止热键冲突。
- 在chrome浏览中浏览HTML文件快捷键设置:
{"keys":["ctrl+f5"],
"command":"side_bar_files_open_with",
"args":{
"paths":[],
"application":"C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe",
"extensions":".*"
}
}
注意:application中的地址为chrome.exe的位置,请别直接复制,在安装位置中查找一下。
另外:在两个快捷键设置之间用,
隔开。切记!!