【问题标题】:How to disable removal of new lines in Dart file on VSCode?如何在 VSCode 上禁用删除 Dart 文件中的新行?
【发布时间】:2019-03-31 00:54:32
【问题描述】:

我安装了 Dart & Flutter 插件,我的 editor.formatOnSave 设置为 true

但我想在保存时保留所有新行,并格式化其余代码?

如何编辑 Dart Auto Formatter for VSCode 的样式设置?

【问题讨论】:

    标签: visual-studio-code dart flutter


    【解决方案1】:

    分析器默认只保留一个新行。 Maaaybe 有一个 lint style 改变这种行为会抛出一个 analysis_output.yaml file,但我不这么认为。 也许您应该添加 cmets 或 ;在您要保留的那些行中

    【讨论】:

      猜你喜欢
      • 2020-10-02
      • 2020-02-06
      • 1970-01-01
      • 2018-05-25
      • 2017-05-30
      • 1970-01-01
      • 2022-08-17
      • 2022-01-24
      • 1970-01-01
      相关资源
      最近更新 更多