Today, I switched my sublime text to version 3. And then I found that  the emmet plugin doesn't work when I press the tab key,  but it works by press "ctrl + e". So I went to github to see the readme file of the emmet-sublime plugin, and finally I got a way to resolve this problem.

The following solution would be helpful for you:

Original Text

Go to Preferences > Key Bindings — User and insert the following JSON snippet with properly configured scope selector instead of SCOPE_SELECTOR token:

{
"keys": ["tab"],
"command": "expand_abbreviation_by_tab", // put comma-separated syntax selectors for which
// you want to expandEmmet abbreviations into "operand" key
// instead of SCOPE_SELECTOR.
// Examples: source.js, text.html - source
"context": [
{
"operand": "SCOPE_SELECTOR",
"operator": "equal",
"match_all": true,
"key": "selector"
}, // run only if there's no selected text
{
"match_all": true,
"key": "selection_empty"
}, // don't work if there are active tabstops
{
"operator": "equal",
"operand": false,
"match_all": true,
"key": "has_next_field"
}, // don't work if completion popup is visible and you
// want to insert completion with Tab. If you want to
// expand Emmet with Tab even if popup is visible --
// remove this section
{
"operand": false,
"operator": "equal",
"match_all": true,
"key": "auto_complete_visible"
},
{
"match_all": true,
"key": "is_abbreviation"
}
]
}

How to get current syntax scope name?

Just press ⇧⌃P (OSX) or Ctrl+Alt+Shift+P, it will be displayed on screen.

最新文章

  1. svn提交时提示 Aborting commit: remains in conflict 解决办法
  2. Introduction - SNMP Tutorial
  3. HDU 2545 树上战争 (并查集+YY)
  4. IOS Animation-贝塞尔曲线与Layer简单篇(一)
  5. ubuntu1404服务器版中设置root用户
  6. sql server trace 和 Profiler
  7. git(4)如何在windows上安装git
  8. 87、代码适配IphoneX
  9. mysql 数据库的主从同步
  10. python学习笔记02--列表和元组
  11. vue中watch的详细用法
  12. 简单了解version control
  13. apache日志记录格式LogFormat参数说明
  14. 关于编译安装php
  15. JavaScript:Function/Object/prototype/__proto__
  16. test20181007 wzoi
  17. Codeforces Round #298 (Div. 2) E. Berland Local Positioning System 构造
  18. 关于linux的添加永久静态路由的static-routes方法
  19. 用Vue的父子组件通信实现todolist的功能
  20. 病毒侵袭 HDU - 2896(ac自动机 板题)

热门文章

  1. JNI模板
  2. tarnado源码解析系列一
  3. ruby 数据类型Symbol
  4. Kubernetes-深入分析集群安全机制
  5. MFC接收ShellExecute多个参数
  6. java入门---简介&简单输出小例子&开发前准备
  7. Spring MVC: 环境搭建并实现简易的HelloWorld
  8. 4,由spring展开的串烧
  9. BeyondCompare3 提示许可证密钥已被撤销解决方法
  10. 自动化测试(一)-get和post的简单应用