Atom 不会在自动完成时替换

Atom doesn't replace on auto complete

我不知道这是一个错误还是我做错了什么,但是每当我输入一些东西并从自动完成菜单中按 enter 进入 select 时,它会留下之前写的任何东西......或者现在特别是@符号

这里有图片演示

enter image description here

enter image description here

所以更重要的是,如果您选择自动完成,Atom does 将替换您键入的任何内容,这与布伦特在下面所说的相反。在 html 文件中尝试键入 dvbtn 和 select 以自动完成,然后您会看到它替换了您键入的内容。所以这种行为只能(就我而言)用符号复制

来自Autocomplete section of the Atom Flight manual:

By default, the autocomplete system will look through the current open file for strings that match what you're starting to type.

如果您输入了 Atom 无法识别的关键字的一部分,然后自动完成短语的其余部分,Atom 不会 删除您之前输入的内容键入。当我第一次开始使用 Atom 时,我经常这样做。解决方案很简单:只需键入 Atom 识别的关键字部分,然后自动完成其余部分。因此,对于您的第一个示例图像,您只需开始输入短语 media 然后按回车键;无需包含前面的 @ 符号。这最终意味着您只需输入更少的代码即可获得所需的代码,我认为这非常好。