当格式化 tsconfig.json 而不更改空格和逗号时,我该怎么办?
I want to format tsconfig.json without change spaces and commas.
this tsc --init config
enter image description here
after format,spaces and commas change.
what should I do?
enter image description here
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
逗号将放置在这些多行注释的末尾(/* ... */)。因此,您必须将它们删除或将它们放在独立的行上。
快速摆脱 Visual Studio Code 中的多行注释
使用正则表达式
\s* \/\* .* \*\/
全部替换
The commas are going to be placed at the end of those multi-line comments (/* ... */). So you would have to remove them or put them on independent lines.
Quickly get rid of multi-line comments in Visual Studio Code
Use Regular Expression
\s* \/\* .* \*\/
Replace all