为了在编程的时候提高一点效率,我们选择一些像phpstorm、sublime等等的编辑器,但是直接安装的编辑器功能有点少,这时需要安装些插件,最近安装sublime插件时一直报图一这种错误:
网上满大街的教程说什么IPv4地址不正确啊,什么卸载重装啊,也有的指明是:https://packagecontrol.io/channel_v3.json访问不了,然后各种积分下载,关键是有的积分下载还不管用,,,说多了都是眼泪,,,,不多说了教程如下:
1、从官网下载如图二:http://www.sublimetext.com/3
2、一直点击下一步然后安装完成。安装sublime插件推荐用package control在线安装:按(Ctrl+`)调出console粘贴以下代码到底部命令行并回车:
import urllib.request,os; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); open(os.path.join(ipp, pf), 'wb').write(urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ','%20')).read())
3、等几分钟就可以用package control在线安装插件了,但是用package control 安装插件时就会报图一那种错误,那是因为我们访问不了https://packagecontrol.io/channel_v3.json这个文件。channel_v3.json地址如下:链接:https://pan.baidu.com/s/12VhaDn400uE30IEu1_FgJw 提取码:9mkj
4、打开packge control Settings-User 进行设置,并将channel_v3.json文件放到图四channels对应的路径中,然后重启subline:
5、点击Package Control 中的Install Package( Ctrl+Shift+P快捷键) 如图五来安装你所需的插件如图六,点击回车键就进行安装,安装效果如图七:
6、ctrl+` 可以调出控制台查看是否报错如图八:
7、经过上述几部就可以安装你所需的插件了,下面是我的插件列表:
"1337 Color Scheme",
"1Self",
"3D Tool (Async Burst-Mode)",
"A File Icon",
"AdvancedNewFile",
"Align Arguments",
"Alignment",
"All Autocomplete",
"AngularJS",
"ApacheConf",
"auto-save",
"Autoprefixer",
"AutoFileName",
"Better JavaScript",
"Bootstrap 3 Snippets",
"Bootstrap 4 Snippets",
"BracketHighlighter",
"ChineseLocalizations",
"CoffeeLint",
"Color Highlighter",
"ConvertToUTF8",
"CSS Comments",
"CSS Format",
"CSS3",
"CTags",
"DeleteBlankLines",
"DocBlockr",
"EditorConfig",
"Emmet",
"FileDiffs",
"Git",
"HTML-CSS-JS Prettify",
"HTML5",
"Javascript",
"Javascript Beautify",
"jQuery",
"jQuery Snippets for Coffeescript",
"JsFormat",
"JSLint",
"JSONLint",
"jQuery",
"Keymaps",
"Laravel 5 Artisan",
"Laravel Cheat Sheet",
"Laravel Color Scheme",
"Laravel Docs",
"LiveStyle",
"MarkdownTOC",
"MarkdownEditing",
"MarkdownHighlighting",
"MarkdownTOC",
"NativeBase Snippets Sublime",
"Nodejs",
"Package Control",
"PackageResourceViewer",
"PHP",
"PHP Companion",
"PHP Completions Kit",
"PHP Syntax Checker",
"Phpcs",
"PhpDoc",
"phpfmt",
"PHPIntel",
"PhpDoc",
"Pretty JSON",
"Pylint",
"Pylinter",
"ReactJS",
"Sass",
"SCSS",
"SideBarEnhancements",
"Sublime SFTP",
"SublimeCodeInte",
"SublimeCodeIntel",
"SublimeLinter",
"SublimeLinter-clang",
"SublimeLinter-contrib-clang-tidy",
"SublimeLinter-contrib-dockerfilelint",
"SublimeLinter-contrib-java",
"SublimeLinter-contrib-perl",
"SublimeLinter-contrib-perlcritic",
"SublimeLinter-contrib-rustc",
"SublimeLinter-csslint",
"SublimeLinter-eslint",
"SublimeLinter-haml",
"SublimeLinter-html-tidy",
"SublimeLinter-jshint",
"SublimeLinter-json",
"SublimeLinter-lua",
"SublimeLinter-php",
"SublimeLinter-pylint",
"SublimeLinter-ruby",
"SublimeLinter-xmllint",
"SublimeTmpl",
"SVN",
"Tagify",
"Themr",
"Thinkphp",
"TrailingSpaces",
"Vue Syntax Highlight",
"Vuejs Complete Package",
"Vuejs Snippets"
8、subline 设置推荐如图9 :
第一次写文章,有什么不正确的地方请多多包含。。。最后祝大家好运,少遇点坑!!!