用sublime编辑html文件,右键此文件,自带一个在浏览器中打开,但是这个是在IE里打开,
如何在chrome里打开呢。
1.
这里插入一下安装"view in browser"官方版的说明:(前提是得先安装package control插件)
1、通过"ctrl+shift+p"打开命令面板
2、输入"install package"打开安装插件面板
3、输入"view in browser"后通过鼠标左键单击或者回车键进行安装
4、察看SublimeText左下角状态栏了解是否安装成功
2.
Preferences >Package Settings > View In Browser 把default的配置复制到user上,并且
修改chrome的路径即可
{ "posix": { "linux": { "firefox": "firefox -new-tab", "chrome": "google-chrome", "chrome64": "google-chrome", "chromium": "chromium" }, "linux2": { "firefox": "firefox -new-tab", "chrome": "google-chrome", "chrome64": "google-chrome", "chromium": "chromium" }, "darwin": { "firefox": "open -a \"/Applications/Firefox.app\"", "safari": "open -a \"/Applications/Safari.app\"", "chrome": "open -a \"/Applications/Google Chrome.app\"", "chrome64": "open -a \"/Applications/Google Chrome.app\"" } }, "nt": { "win32": { "firefox": "C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe -new-tab", "iexplore": "C:\\Program Files\\Internet Explorer\\iexplore.exe", "chrome": "C:\\Program Files\\Chrome\\chrome.exe", "chrome64": "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe" } }, "browser": "chrome" }
时间: 2024-12-28 00:24:18