【问题标题】:flutter code formatting in vscode like in Android studio像在 Android Studio 中一样在 vscode 中颤动代码格式
【发布时间】:2021-03-17 10:41:19
【问题描述】:

在 Android Studio 中,当你有 Column 小部件时,折叠代码非常方便:

但是在VSCode中你看不到最后是否有昏迷,甚至在折叠模式下添加。

如何像在 Android Studio 中一样配置 VSCode?​​p>

【问题讨论】:

  • 你想问什么?

标签: android-studio flutter dart visual-studio-code code-formatting


【解决方案1】:

将此添加到您的 vscode 的 settings.json 中

"[dart]": {
   "editor.defaultFormatter": "Dart-Code.dart-code",
   "editor.formatOnSave": true
},

【讨论】:

  • 没有帮助
猜你喜欢
  • 2022-11-04
  • 2020-01-28
  • 2021-03-02
  • 2017-02-06
  • 2022-01-19
  • 1970-01-01
  • 1970-01-01
  • 2015-07-06
相关资源
最近更新 更多