Atom Editor: Hashtag creates brackets - JavaScript editing

吃可爱长大的小学妹 提交于 2019-12-10 11:36:29

问题


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



来源:https://stackoverflow.com/questions/53111502/atom-editor-hashtag-creates-brackets-javascript-editing

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!