VSCode热重装颤振 [英] VSCode hot reload for flutter

查看:77
本文介绍了VSCode热重装颤振的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开始在VSCode中玩Flutter.我还安装了Dart插件. 运行我在终端中阅读的演示应用程序

I've just started playing with Flutter in VSCode. I also installed the Dart Plugin. Running the demo app I read in the terminal

这是热重新加载应用程序的唯一方法吗?我的意思是我应该始终保持终端打开并专注于它以键入"r",以便重新加载我的视图? VSCode是否直接提供快捷方式?

Is this the only way to hot-reload the app? I mean I should always keep the terminal open and focus on it to type "r" in order to reload my views? Isn't there a shortcut directly from VSCode?

推荐答案

对此有一个扩展.称为Dart Code,另一个名为Flutter Code

There's an extension for that. Called Dart Code and another one named Flutter Code

他们将检测到您的项目是Dart/Flutter项目.并允许您使用f5对其进行调试和热重装.

They will detect that your project is a Dart/Flutter project. And allows you to debug it + hot reload using f5.

这篇关于VSCode热重装颤振的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆