![](/img/trans.png)
[英]How to set up a build configuration for the debugger in vscode (using flavours in flutter with different entry points)?
[英]VScode Configuration
我只是想找出如何配置 VScode 以某種方式設計我的代碼,我剛剛更換了我的計算機,但似乎無法找到要設置的屬性來更改我的代碼:
class Test extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Container(child: Text("data",style: TextStyle(color: Colors.black45),),);
}
}
對此:
class Test extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Container(
child: Text(
"Dara",
style: TextStyle(color: Colors.black45),
),
);
}
}
這曾經在我的舊電腦上通過按 CTRL+S 對我有用。
您需要從 VS 代碼市場安裝 Flutter 擴展。
如果您想在保存文件時自動格式化,請在 VS 代碼中將 editor.formatOnSave設置設置為true 。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.