Sublime Text 3及package control安装
下载Sublime Text 3
官网地址:https://www.sublimetext.com/3
package control下载
下载地址:https://github.com/wbond/package_control
解压后将文件夹名改为:Package Control
打开Sublime,点击菜单Preferences>>Browse Packages,将Package Control移入弹出的文件夹,然后返回上级,删除Installed Packages文件夹中的下图文件
重启sublime
快捷键Ctrl + Shift + P,输入install,出现下图回车
此时弹出错误消息:
下载channel_v3.json
百度云链接:https://pan.baidu.com/s/12g5YkCdpF39KVQWrf1U1Iw
密码:15ch
点击菜单Preferences>>Package Settings>>Package Control>>Settings
打开后输入下图内容
代码:
"channels": [
"D:/Sublime Text 3/channel_v3.json"
],
"channels":
[
"D:/Sublime Text 3/channel_v3.json",
"https://github.com/wilon/sublime/raw/master/download/channel_v3.json",
"https://github.com/wilon/sublime/raw/master/download/channel_v3.json"
],
保存后快捷键Ctrl + Shift + P,输入install,出现下图回车
稍等一会就成功啦!
汉化
在上图中键入chinese,出现ChineseLocalizations回车安装,等一会就好了
安装完view in browser插件后,在文档中右键的view in browser 不生效的解决方法
1、打开preferences–>package setting–> view in browser -->settings-default,复制文件内容到settings-users中;因为settings-default文件是只读的
2、根据本地浏览器的所在地址,修改settings-user文件中的地址;
{
"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\"",
"yandex": "open -a \"/Applications/Yandex.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 (x86)\\Google\\Chrome\\Application\\chrome.exe",
"chrome64": "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe",
"yandex": "%Local AppData%\\Yandex\\YandexBrowser\\browser.exe"
}
},
"browser": "chrome"
}
3、修改文件最后的browser,比如以上代码就是设置了chrome浏览器的默认打开方式,这样就可以通过右键点击文档然后点击view in browser正常打开chrome进行预览了
参考:https://blog.csdn.net/wingwqr/article/details/108457330