使用sublime时由于经常要在ie chrome firefox等浏览器中预览,所以很有必要设置多个浏览器预览
步骤:
(1)安装SideBarEnhancements插件(用sublime的应该都知道)
(2)安装好以后点击工具栏的 preferences > package setting > side bar > Key Building-User键入以下代码
(3)说明: 注意自己浏览器的安装位置就ok了
例如:{ "keys": ["f3"], "command": "side_bar_open_in_browser" , "args":{ "paths":[], "type":"testing", "browser":"safari"} }, { "keys": ["f4"], "command": "side_bar_open_in_browser", "args":{ "paths":[], "type":"production", "browser":"chrome"} }, { "keys": ["ctrl+t"], "command": "side_bar_new_file2" }, { "keys": ["f2"], "command": "side_bar_rename" },
以下测试可用
[{ "keys": ["f3"], "command": "side_bar_open_in_browser" , "args":{ "paths":[], "type":"testing", "browser":"safari"} }, { "keys": ["f1"], "command": "side_bar_open_in_browser", "args":{ "paths":[], "type":"testing", "browser":"chrome"} }, { "keys": ["f2"], "command": "side_bar_open_in_browser", "args":{ "paths":[], "type":"testing", "browser":"firefox"} },]