![](/img/trans.png)
[英]Exclude git versioning for json type files in Visual Studio Code
[英]Json files structure/format in Visual Studio Code
使用ALT-SHIFT-F
自動格式化 windows 中的 json 文件
按Ctrl-Shift-p格式化文檔。 我不知道這個快捷方式是否適用於 Windows,但它適用於 Linux。
安裝代碼格式化擴展,然后保存文件。
使用擴展安裝 Prettier,然后右鍵單擊 select 格式的文檔並選擇 Prettier。
打開 json 文件和SHIFT
+ OPTION
+ F
for mac
在 2022 年,它是Ctrl+Shift+I
,如Visual Studio Code 網站上所述。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.