[英]VScode document formatter is not working for Dart/Flutter
我正在嘗試使用 shift + alt + f 在 VScode 中格式化代碼,我也嘗試使用右鍵單擊“文檔格式”但仍然沒有成功。
"[dart]": {
"editor.defaultFormatter": "Dart-Code.dart-code",
"editor.formatOnSave": true
},
將此添加到您的 settings.json 文件中,之后 ctrl+s 將格式化您的代碼。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.