Atom编辑器:Emmet在降价文件中不起作用

时间:2019-11-06 21:10:13

标签: markdown atom-editor emmet

我正在使用原子编辑器和emmet软件包,但tab扩展不适用于md文件,关键是我知道如何使emmet以任何格式(例如.php文件)工作,但是我使用的方法不适用于.markdown文件,我尝试过:

'atom-text-editor[data-grammar="html php markdown md"]:not([mini])':
    'tab': 'emmet:expand-abbreviation-with-tab'

还有:

'atom-text-editor[data-grammar="html php source gfm"]:not([mini])':
    'tab': 'emmet:expand-abbreviation-with-tab'

非常感谢

1 个答案:

答案 0 :(得分:0)

首先,您应在原子上使用this package安装markdown语言,因为您可以看到here的原子编辑器默认情况下没有markdown lang,然后您应该更改原子编辑器keymap.cson文件像这样:

'atom-text-editor[data-grammar="text md"]:not([mini])':
    'tab': 'emmet:expand-abbreviation-with-tab'
'atom-text-editor[data-grammar="html php"]:not([mini])':
    'tab': 'emmet:expand-abbreviation-with-tab'