vscode中格式化dart時,會自動換行 image.png 需要調整下換行條件下的的最大值 打開vscode setting.json 輸入 "dart.lineLength": 120 默認是80,把這個調整成120即可 image.png