Harmonic
Harmonic

Reputation: 377

Atom Editor: Hashtag creates brackets - JavaScript editing

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: "#{}"

Upvotes: 1

Views: 205

Answers (2)

joakland
joakland

Reputation: 155

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

Upvotes: 1

idleberg
idleberg

Reputation: 12882

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:

enter image description here

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!

Upvotes: 2

Related Questions