gpt4 book ai didi

json - 如何在 Visual Studio Community 2019 中格式化 JSON 文档?

转载 作者:行者123 更新时间:2023-12-04 15:35:06 33 4
gpt4 key购买 nike

我试过 Ctrl + K、Ctrl + D,但它只适用于 *.cs 文件。 JSON 文件没有错误,也不大,但是当我按 Ctrl + K、Ctrl + D 时,它说该命令不可用。我尝试了一些我在互联网上找到的其他组合,但它们根本不起作用。我也没有 JSON 的文本编辑器选项。我是否必须另外安装一些东西才能让它们出现?

我有 Visual Studio Community 2019 16.4.4 和 Windows 10 x64。

最佳答案

您可以使用菜单将代码复制到空白的 JSON 文件中。我正在使用 Microsoft Visual Studio Community 2019 版本 16.8.5。
文件-->新建-->文件-->网页-->JSON文件
enter image description here
enter image description here
然后您可以右键单击并选择格式文档。
enter image description here

关于json - 如何在 Visual Studio Community 2019 中格式化 JSON 文档?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60049304/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com