如何在 Sublime Text 3 中自定义 Emmet 缩写
How to custom Emmet Abbreviation in Sublime Text 3
我在 Sublime Text 3 中安装了一个新的 Emmet Abbreviation
插件,默认语法范围 HTML分别是这些:
html
<html></html>
html:5 或 !
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
</body>
</html>
但是我想添加或编辑这样的特定语法。
我已经在 Preferences> Package Settings> Emmet> Settings 中搜索过,但没有成功。
您需要重新定义 doc
snippet。在 Emmet 中,snippets 本身就是缩写,换句话说,snippets 是另一个缩写的别名。
要在 Sublime Text 中自定义片段,请参阅 https://github.com/emmetio/sublime-text-plugin#adding-custom-emmet-snippets
我在 Sublime Text 3 中安装了一个新的 Emmet Abbreviation
插件,默认语法范围 HTML分别是这些:
html
<html></html>
html:5 或 !
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
</body>
</html>
但是我想添加或编辑这样的特定语法。 我已经在 Preferences> Package Settings> Emmet> Settings 中搜索过,但没有成功。
您需要重新定义 doc
snippet。在 Emmet 中,snippets 本身就是缩写,换句话说,snippets 是另一个缩写的别名。
要在 Sublime Text 中自定义片段,请参阅 https://github.com/emmetio/sublime-text-plugin#adding-custom-emmet-snippets