第一步,在user中配置默认浏览器
{
"browser": "safari",
}
第二步,在sublime的keybindings中配置各浏览器快捷键
{ "keys": [ "ctrl+alt+v" ], "command": "view_in_browser" },
{ "keys": [ "f5" ], "command": "view_in_browser", "args": { "browser": "firefox" } },
{ "keys": [ "f3" ], "command": "view_in_browser", "args": { "browser": "chrome" } },
{ "keys": [ "ctrl+alt+i" ], "command": "view_in_browser", "args": { "browser": "iexplore" } },
{ "keys": [ "f4" ], "command": "view_in_browser", "args": { "browser": "safari" } }
因为View in Browser 在mac存在(win不知道)在中文目录中失效的问题,所以浏览器预览的问题,使用九.SideBarEnhancements一并实现.