Sublime Text 3 Emmet 自定义

Sublime Text 3 Emmet customization

我正在将 ST3 与 Emmet(Windows 7 64 位)一起使用,我想添加一些自定义片段,例如 CSS 用于 iPad 特定媒体查询。

我找不到任何 Emmet 设置文件,我该怎么做?我已经尝试创建一个标准的 Sublime Text 3 片段,但它不起作用,所以我假设这些被 Emmet 禁用以避免冲突。

Emmet documentation has a Customization section, which describes how to use a snippets.json 文件以创建您自己的片段。

来自自定义 link:

Almost all officially developed editor plugins (...) has extensions support: a special folder where you can put .json and .js files to extend Emmet. Please refer to README file bundled with your editor’s plugin to find out where Emmet looks for extensions.

来自 the README file (also found on GitHub):

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 the original settings file for examples.