sublime Emmet的用法及相关语法
https://www.haorooms.com/post/emmet_s
在浏览器中打开 html 文件
https://www.jianshu.com/p/c9d76fe898c8
本次解决发生在初次安装Sublime Text 3时,使用install package 功能出现以下报错
windows系统适用
问题发生的根源可能有很多,但以下两个步骤覆盖绝大多数问题,亲测有用。
1. Intent服务提供者(ISP)不支持IPv6就会引发上述错误
stackoverflow上的原文:This error is happened with IPv6 problem. If your Internet Service Provider (ISP) does not support for IPv6 you got this error.
解决方法:
1.WIN+R输入cmd打开命令行窗口;
2.在命令行窗口里输入ping
sublime.wbond.net,获得一个ip地址。如下图所示黄字部分为ip地址
3.打开本机C:Windowssystem32driversetc 目录下 host文件
在最后新增一行,内容如下:
50.116.34.243 sublime.wbond.net
回车,保存。
(修改host文件需管理员权限,如果不能在该目录下修改,也可以复制到桌面上修改后直接覆盖再改目录下,并确定使用管理员权限即可)
2.package control 不可用
1.删除原package control 文件
a.打开sublime text3,选择菜单Preferences->Browse Packages... 打开安装目录
选择目录下Package Control文件夹,并删除
2.下载并替换Package Contro包:
官网下载:https://sublime.wbond.net/Package%20Control.sublime-package
网盘下载:链接:https://pan.baidu.com/s/1U8yDd1EWn2160Zaa-WOgeg 密码:unnj
解压,修改文件夹名字为:Package Control, 并放到上图中同样的目录下,即打开sublime text3,选择菜单Preferences->Browse Packages... 打开安装目录。
结束
此时使用快捷键Ctrl+Shift+P,输入install,选择install package,想安装什么插件,在里面搜索名字就可以了
Sublime Text3安装SublimeREPL插件以及快捷键设置
https://www.cnblogs.com/jpfss/p/10213758.html
Sublime text代码补全插件(支持Javascript、JQuery、Bootstrap框架)
https://blog.csdn.net/Two_dogs/article/details/49719127
下载地址:https://github.com/Pleasurazy/Sublime-JavaScript-API-Completions
{
// --------------------
// sublime-better-completions-Package (sbc package)
// --------------------
// API files is contains the *keyword* such as `html`, `jquery`, `myglossary` with lowercase as filename `sbc-api-${filename}.sublime-settings` place in `/packages/User/` (your own) or `/packages/${this-package}/sublime-completions/` (package build-in).
// After you enable, disable or added new your own completions, you might need restart your Sublime Text Editor.
//
// Your own setting file `sbc-setting.sublime-settings` need to place in `/packages/User/` and contains all your api setting property that you want to enable.
//
// --------------------
// APIs Setup
// --------------------
// `true` means enable it.
// `false` means disable it.
"completion_active_list": {
// build-in completions
"css-properties": true,
"gruntjs-plugins": true,
"html": false,
"lodash": true,
"javascript": true,
"jquery": true,
"jquery-sq": true, // Single Quote
"php": true,
"phpci": true,
"sql": true,
"twitter-bootstrap": true,
"twitter-bootstrap-less-variables": true,
"twitter-bootstrap3": true,
"underscorejs": true,
"react": true,
// Your own completions?
// ~/Library/Application Support/Sublime Text 3/Packages/User/sbc-api-my-angularjs.sublime-settings
"my-angularjs": true,
// ~/Library/Application Support/Sublime Text 3/Packages/User/sbc-api-my-glossary.sublime-settings
"my-glossary": true,
// ~/Library/Application Support/Sublime Text 3/Packages/User/sbc-api-my-html.sublime-settings
"my-html": true,
// ~/Library/Application Support/Sublime Text 3/Packages/User/sbc-api-my-javascript.sublime-settings
"my-javascript": false
}
}