英文:
Parentheses disappear after formatting in vscode
问题
如何更改设置以保留括号而不关闭 prettier 格式化?
英文:
I write in vscode this statement in js:
el.style.width = (this.elementWidth + round * 10) + "px";
After autosave / formatting (prettier) it turns to this:
el.style.width = this.elementWidth + round * 10 + "px";
How do I change the settings to leave the parentheses without turning off prettier formatting?
答案1
得分: 2
似乎你所描述的行为是一个旧的、长期讨论的问题,他们(指的是prettier
)不愿意修复。
英文:
Looks like the behaviour you are describing is an old, long-discussed issue that they, prettier
, are not willing to fix
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论