Atom Editor: Hashtag creates brackets - JavaScript

2019-06-01 09:51发布

问题:

I must have accidentally toggled an option.

If I type a hashtag # inside of quotes, atom automatically appends {}.

Example:

Type = what I type

Atom = what Atom actually does

Type: "
Atom: ""
Type: #
EXPECTED: "#"
Atom: "#{}"

回答1:

This is a known issue that will hopefully get a fix in one of the next releases. As a workaround, you can disable the new Tree Sitter Parser in the Atom Core Settings:

Keep in mind that Tree Sitter is the next generation parser for Atom, so once the issue has been resolved, you should enable Tree Sitter again!



回答2:

I have this problem as well. Potential workaround are being posted on the Atom message boards here.

UPDATE: This issue is getting fixed in the next release. Check out the thread I linked to above



标签: atom-editor