【问题标题】:Atom editor: Emmet not working in markdown filesAtom 编辑器:Emmet 不能在降价文件中工作
【发布时间】:2020-03-03 10:22:16
【问题描述】:

我正在使用 atom 编辑器和 emmet 包,但 tab expand 在 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'

非常感谢

【问题讨论】:

    标签: markdown atom-editor emmet


    【解决方案1】:

    首先,您应该在 atom 上使用 this package 安装 markdown 语言,因为您可以看到 here atom 编辑器默认没有 markdown lang,然后您应该像这样更改您的 atom 编辑器 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'
    

    【讨论】:

      猜你喜欢
      • 2016-09-13
      • 1970-01-01
      • 2014-10-20
      • 2018-10-02
      • 1970-01-01
      • 2021-08-05
      • 2018-02-17
      • 1970-01-01
      • 2020-01-27
      相关资源
      最近更新 更多