当格式化 tsconfig.json 而不更改空格和逗号时,我该怎么办?

发布于 2025-01-14 08:22:22 字数 251 浏览 3 评论 0原文

我想格式化 tsconfig.json 而不更改空格和逗号。 这个 tsc --init 配置 在此处输入图像描述

格式、空格和逗号更改后, 。 我应该怎么办? 在此处输入图片说明

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一瞬间的火花 2025-01-21 08:22:22

逗号将放置在这些多行注释的末尾(/* ... */)。因此,您必须将它们删除或将它们放在独立的行上。

快速摆脱 Visual Studio Code 中的多行注释

  1. CTRL + H
  2. 勾选 使用正则表达式
  3. 粘贴 \s* \/\* .* \*\/
  4. 单击全部替换

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

  1. CTRL + H
  2. Tick Use Regular Expression
  3. Paste \s* \/\* .* \*\/
  4. Click Replace all
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文