【问题标题】:Atom snippets in assembly not working程序集中的原子片段不起作用
【发布时间】:2017-02-19 15:42:18
【问题描述】:

所以我使用 Atom,我使用 Snippets。我以前用它来写cpp 代码,它工作得很好。现在我想为汇编语言添加一些片段。

这是我snippets.cson的相关部分:

'.source.s':
  'movl':
    'prefix': 'movl'
    'body': 'movl ${1:SOMETHING}, ${2:%eax}'

cpp 的代码片段完美运行,但用于汇编的 sn-ps 不起作用。我有.s 文件,当我输入movl 时,它会出现在弹出窗口中,但随后我使用tab,它只是写下movl。我该如何解决这个问题?

【问题讨论】:

    标签: atom-editor code-snippets


    【解决方案1】:

    据我所知,language-assembly 的范围应该是.source.assembly(可以更具体,例如.source.assembly.asm.x86.intel)。

    如有疑问,您可以随时从命令面板expose the current scope

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-03-09
      • 2019-02-06
      • 2016-01-30
      • 2018-05-18
      • 1970-01-01
      • 2019-03-04
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多