简体   繁体   English

Atom中的自动完成搞砸了

[英]Auto completion in Atom messed up

I don't know whether this is specific to javascript or not, but I'm seeing this behavior: 我不知道这是否特定于javascript,但我看到了这种行为:

console.lo

TAB or ENTER TABENTER

console.console.log();

I would expect it to auto-complete to: 我希望它能自动完成:

console.log();

Am I doing something wrong? 难道我做错了什么?

Atom auto-completion works like this: Atom自动完成的工作方式如下:

log -> console.log(); log - > console.log();

so it gets confused and auto-completes console.lo -> console.console.log(); 所以它会混淆并自动完成console.lo - > console.console.log();

A workaround is using log as your short-hand instead. 解决方法是使用log作为您的简写。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM