# Emmet for Sublime Text
[![Get Support](http://codersclan.net/graphics/getSupport_github4.png)](http://codersclan.net/support/step1.php?repo_id=4)
Official [Emmet](http://emmet.io) plugin for Sublime Text.
* [How to install](#how-to-install)
* [Available actions](#available-actions)
* [Extensions support](#extensions-support)
* [Overriding keyboard shortcuts](#overriding-keyboard-shortcuts)
* [How to expand abbreviatoins with Tab key in other syntaxes](#how-to-expand-abbreviations-with-tab-in-other-syntaxes)
* [Notes about Tab key handler](#tab-key-handler)
## How to install
*Warning:* this plugin may not work at all in some OSes since it written in JavaScript and uses [PyV8](http://code.google.com/p/pyv8/) and [Google V8](https://developers.google.com/v8/) binaries to run. If you experience problems or editor crashes please [fill an issue](https://github.com/sergeche/emmet-sublime/issues).
With [Package Control](http://wbond.net/sublime_packages/package_control):
1. Run “Package Control: Install Package” command, find and install `Emmet` plugin.
2. Restart ST editor (if required)
Manually:
1. Clone or [download](https://github.com/sergeche/emmet-sublime/archive/master.zip) git repo into your packages folder (in ST, find Browse Packages... menu item to open this folder)
2. Restart ST editor (if required)
--------------
**WARNING**: When plugin is installed, it will automatically download required PyV8 binary so you have to wait a bit (see _Loading PyV8 binary_ message on status bar). If you experience issues with automatic PyV8 loader, try to [install it manually](https://github.com/emmetio/pyv8-binaries).
## Available actions ##
* [Expand Abbreviation](http://docs.emmet.io/actions/expand-abbreviation/) – <kbd>Tab</kbd> or <kbd>Ctrl+E</kbd>
* Interactive “Expand Abbreviation” — <kbd>Ctrl+Alt+Enter</kbd>
* [Match Tag Pair Outward](http://docs.emmet.io/actions/match-pair/) – <kbd>⌃D</kbd> (Mac) / <kbd>Ctrl+,</kbd> (PC)
* [Match Tag Pair Inward](http://docs.emmet.io/actions/match-pair/) – <kbd>⌃J</kbd> / <kbd>Shift+Ctrl+0</kbd>
* [Go to Matching Pair](http://docs.emmet.io/actions/go-to-pair/) – <kbd>⇧⌃T</kbd> / <kbd>Ctrl+Alt+J</kbd>
* [Wrap With Abbreviation](http://docs.emmet.io/actions/wrap-with-abbreviation/) — <kbd>⌃W</kbd> / <kbd>Shift+Ctrl+G</kbd>
* [Go to Edit Point](http://docs.emmet.io/actions/go-to-edit-point/) — <kbd>Ctrl+Alt+→</kbd> or <kbd>Ctrl+Alt+←</kbd>
* [Select Item](http://docs.emmet.io/actions/select-item/) – <kbd>⇧⌘.</kbd> or <kbd>⇧⌘,</kbd> / <kbd>Shift+Ctrl+.</kbd> or <kbd>Shift+Ctrl+,</kbd>
* [Toggle Comment](http://docs.emmet.io/actions/toggle-comment/) — <kbd>⇧⌥/</kbd> / <kbd>Shift+Ctrl+/</kbd>
* [Split/Join Tag](http://docs.emmet.io/actions/split-join-tag/) — <kbd>⇧⌘'</kbd> / <kbd>Shift+Ctrl+`</kbd>
* [Remove Tag](http://docs.emmet.io/actions/remove-tag/) – <kbd>⌘'</kbd> / <kbd>Shift+Ctrl+;</kbd>
* [Update Image Size](http://docs.emmet.io/actions/update-image-size/) — <kbd>⇧⌃I</kbd> / <kbd>Ctrl+U</kbd>
* [Evaluate Math Expression](http://docs.emmet.io/actions/evaluate-math/) — <kbd>⇧⌘Y</kbd> / <kbd>Shift+Ctrl+Y</kbd>
* [Reflect CSS Value](http://docs.emmet.io/actions/reflect-css-value/) – <kbd>⇧⌘R</kbd> / <kbd>Shift+Ctrl+R</kbd>
* [Encode/Decode Image to data:URL](http://docs.emmet.io/actions/base64/) – <kbd>⇧⌃D</kbd> / <kbd>Ctrl+'</kbd>
* Rename Tag – <kbd>⇧⌘K</kbd> / <kbd>Shift+Ctrl+'</kbd>
[Increment/Decrement Number](http://docs.emmet.io/actions/inc-dec-number/) actions:
* Increment by 1: <kbd>Ctrl+↑</kbd>
* Decrement by 1: <kbd>Ctrl+↓</kbd>
* Increment by 0.1: <kbd>Alt+↑</kbd>
* Decrement by 0.1: <kbd>Alt+↓</kbd>
* Increment by 10: <kbd>⌥⌘↑</kbd> / <kbd>Shift+Alt+↑</kbd>
* Decrement by 10: <kbd>⌥⌘↓</kbd> / <kbd>Shift+Alt+↓</kbd>
## Extensions support ##
You can easily [extend](http://docs.emmet.io/customization/) Emmet with new actions and filters or customize existing ones. In `Emmet.sublime-settings`, define `extensions_path` setting and Emmet will load all `.js` and `.json` files in specified folder at startup.
The default value of `extensions_path` is `~/emmet`, which points to _emmet_ folder inside your OS user’s home folder.
Also, you can create sections named as extension files (e.g. `snippets`, `preferences` and `syntaxProfiles`) inside user’s `Emmet.sublime-settings` file and write your customizations there. See [original settings file](https://github.com/sergeche/emmet-sublime/blob/master/Emmet.sublime-settings#L61) for examples.
## Overriding keyboard shortcuts ##
Sublime Text is a great text editor with lots of features and actions. Most of these actions are bound to keyboard shortcuts so it’s nearly impossible to provide convenient plugin shortcuts for third-party plugins.
If you’re unhappy with default keymap, you can disable individual keyboard shortcuts with `disabled_keymap_actions` preference of `Emmet.sublime-settings` file.
Use a comma-separated list of action names which default keyboard shortcuts should be disabled. For example, if you want to release <kbd>Ctrl+E</kbd> (“Expand Abbreviation”) and <kbd>Ctrl+U</kbd> (“Update Image Size”) shortcuts, your must set the following value:
"disabled_keymap_actions": "expand_abbreviation, update_image_size"
You should refer `Default (Your-OS-Name).sublime-keymap` file to get action ids (look for `args/action` key).
To disable all default shortcuts, set value to `all`:
"disabled_keymap_actions": "all"
Not that if you disabled any action like so and you’re create your own keyboard shortcut, you **should not** use `emmet_action_enabled.ACTION_NAME` context since this is the key that disables action.
## How to expand abbreviations with Tab in other syntaxes
Emmet expands abbreviations in limited syntaxes only: HTML, CSS, LESS, SCSS and Stylus. The reason to restrict Tab handler to a limited syntax list is because it breaks native Sublime Text snippets.
If you want to abbreviation with Tab in other syntaxes (for example, JSX, HAML etc.) you have to tweak your [keyboard shorcuts settings](http://sublime-text-unofficial-documentation.readthedocs.org/en/sublime-text-2/reference/key_bindings.html): add `expand_abbreviation_by_tab` command for `tab` key for required syntax *scope selectors*. To get current syntax scope selector, press <kbd>⇧⌃P</kbd> (OSX) or <kbd>Ctrl+Alt+Shift+P</kbd>, it will be displayed in editor status bar.
Go to `Preferences` > `Key Bindings — User` and insert the following JSON snippet with properly configured scope selector instead of `SCOPE_SELECTOR` token:
```js
{
"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"
}
]
}
```
### Tab key handler ###
Emmet plugin allows you to expand abbreviations with <kbd>Tab</kbd> key, just like regular snippets. On the other hand, due to dynamic nature and extensive syntax, sometimes you may get unexpected r
没有合适的资源?快使用搜索试试~ 我知道了~
SublimeText3免安装版.rar
共1632个文件
png:462个
py:408个
cache:186个
5星 · 超过95%的资源 需积分: 10 11 下载量 167 浏览量
2019-05-09
14:11:16
上传
评论
收藏 30.39MB RAR 举报
温馨提示
免安装,自带常用插件,非常好用的东西,相信你会需要的
资源推荐
资源详情
资源评论
收起资源包目录
SublimeText3免安装版.rar (1632个子文件)
01524fae79697630d0454ba3fabd9414 2.04MB
01524fae79697630d0454ba3fabd9414 2.04MB
ad7758d143e99a76034aad71ae2a1f3b 1.87MB
ad7758d143e99a76034aad71ae2a1f3b 1.87MB
添加∕删除右键菜单.bat 967B
添加∕删除右键菜单.bat 967B
imesupport_hook.c 4KB
imesupport_hook.c 4KB
Startup.cache 165KB
Startup.cache 165KB
PHP Source.sublime-syntax.cache 28KB
PHP Source.sublime-syntax.cache 27KB
Matlab.sublime-syntax.cache 25KB
Matlab.sublime-syntax.cache 25KB
Objective-C.sublime-syntax.cache 19KB
Objective-C.sublime-syntax.cache 19KB
Clojure.sublime-syntax.cache 10KB
Clojure.sublime-syntax.cache 10KB
Meta Info Summary.cache 10KB
Meta Info Summary.cache 10KB
CSS.sublime-syntax.cache 10KB
CSS.sublime-syntax.cache 10KB
D.sublime-syntax.cache 9KB
D.sublime-syntax.cache 9KB
AppleScript.sublime-syntax.cache 9KB
AppleScript.sublime-syntax.cache 9KB
JavaScript.sublime-syntax.cache 8KB
JavaScript.sublime-syntax.cache 8KB
Perl.sublime-syntax.cache 7KB
Perl.sublime-syntax.cache 7KB
Python.sublime-syntax.cache 7KB
Python.sublime-syntax.cache 7KB
ActionScript.sublime-syntax.cache 7KB
ActionScript.sublime-syntax.cache 7KB
Ruby.sublime-syntax.cache 6KB
Ruby.sublime-syntax.cache 6KB
OCaml.sublime-syntax.cache 6KB
OCaml.sublime-syntax.cache 6KB
C.sublime-syntax.cache 6KB
C.sublime-syntax.cache 6KB
Erlang.sublime-syntax.cache 6KB
Erlang.sublime-syntax.cache 6KB
Shell-Unix-Generic.sublime-syntax.cache 6KB
Shell-Unix-Generic.sublime-syntax.cache 5KB
Solarized (Dark).tmTheme.cache 5KB
Solarized (Light).tmTheme.cache 5KB
LaTeX.sublime-syntax.cache 4KB
LaTeX.sublime-syntax.cache 4KB
Groovy.sublime-syntax.cache 4KB
Groovy.sublime-syntax.cache 4KB
Java.sublime-syntax.cache 3KB
Java.sublime-syntax.cache 3KB
Markdown.sublime-syntax.cache 3KB
Markdown.sublime-syntax.cache 3KB
Syntax Summary.cache 3KB
Syntax Summary.cache 3KB
HTML.sublime-syntax.cache 3KB
HTML.sublime-syntax.cache 3KB
C#.sublime-syntax.cache 3KB
C#.sublime-syntax.cache 3KB
Emmet.tmLanguage.cache 3KB
Emmet.tmLanguage.cache 3KB
Go.sublime-syntax.cache 3KB
Go.sublime-syntax.cache 3KB
Scala.sublime-syntax.cache 3KB
Scala.sublime-syntax.cache 3KB
Haskell.sublime-syntax.cache 3KB
Haskell.sublime-syntax.cache 3KB
SQL.sublime-syntax.cache 2KB
SQL.sublime-syntax.cache 2KB
Makefile.sublime-syntax.cache 2KB
Makefile.sublime-syntax.cache 2KB
TeX Math.sublime-syntax.cache 2KB
TeX Math.sublime-syntax.cache 2KB
ASP.sublime-syntax.cache 2KB
ASP.sublime-syntax.cache 2KB
C++.sublime-syntax.cache 2KB
C++.sublime-syntax.cache 2KB
Sunburst.tmTheme.cache 2KB
Pastels on Dark.tmTheme.cache 2KB
Tcl.sublime-syntax.cache 2KB
Tcl.sublime-syntax.cache 2KB
JavaDoc.sublime-syntax.cache 2KB
JavaDoc.sublime-syntax.cache 2KB
Textile.sublime-syntax.cache 2KB
Textile.sublime-syntax.cache 2KB
OCamllex.sublime-syntax.cache 2KB
OCamllex.sublime-syntax.cache 2KB
reStructuredText.sublime-syntax.cache 2KB
reStructuredText.sublime-syntax.cache 2KB
OCamlyacc.sublime-syntax.cache 2KB
OCamlyacc.sublime-syntax.cache 2KB
Twilight.tmTheme.cache 2KB
Cobalt.tmTheme.cache 2KB
Lua.sublime-syntax.cache 2KB
Lua.sublime-syntax.cache 2KB
XML.sublime-syntax.cache 1KB
XML.sublime-syntax.cache 1KB
Amy.tmTheme.cache 1KB
Big Duo.tmTheme.cache 1KB
共 1632 条
- 1
- 2
- 3
- 4
- 5
- 6
- 17
资源评论
- allen.lao2021-08-10可以用,感谢分享
小千不吃饭
- 粉丝: 13
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- AIS2024 valid
- 最入门的爬虫代码 python.docx
- 爬虫零基础入门-爬取天气预报.pdf
- 最通俗易懂的 MongoDB 非结构化文档存储数据库教程.zip
- 以mongodb为数据库的订单物流小项目.zip
- 腾讯云-mongodb数据库, 项目部署.zip
- 腾讯 APIJSON 的 MongoDB 数据库插件.zip
- 理解非关系型数据库和关系型数据库的区别.zip
- 操作简单的Mongodb网页web管理工具,基于Spring Boot2.0支持mongodb集群.zip
- tms-mongodb-web,提供访问mongodb数据的REST API和可灵活扩展的mongodb web 客户端.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功