vs代码的缩进 - 拉恩维

发布于 2025-01-28 03:05:02 字数 160 浏览 3 评论 0原文

我已经安装了更漂亮的代码格式器,它使2个空间作为代码的标准凹痕。但是,缩进弓将其强调为红色,因此认为默认的缩进件是4个空间。我该怎么办? 这是图像

I have prettier code formatter installed, which makes 2 spaces as a standard indentation for the code. However, indent-rainbow highlights it as a red, so it thinks that default indentaion is 4 spaces. What do I do?
here is the image

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

毅然前行 2025-02-04 03:05:02

如果安装了缩进弓,则可以通过将这些添加到设置为json和Reload VScode来删除错误颜色。

"indentRainbow.ignoreErrorLanguages": ["*"],
"indentRainbow.colorOnWhiteSpaceOnly": true,

希望这有所帮助。

If you installed indent-rainbow, you could remove errors color by adding these to settings.json and reload vscode.

"indentRainbow.ignoreErrorLanguages": ["*"],
"indentRainbow.colorOnWhiteSpaceOnly": true,

Hope this help.

不寐倦长更 2025-02-04 03:05:02

确保“更改选项卡显示大小”,然后将其2

按F1并搜索它

Make sure to "Change Tab Display Size" and make it 2

press f1 and search for it

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文