flutter - Flutter hot reload doesn't work on autosave in VSCode
问题描述
Flutter hot reloads
every time VS Code auto-saves
my project before. A few hours ago, I started experiencing this issue where auto-saving
doesn't hot-reload
my app. Pressing Ctrl+S
manually triggers hot reload
but auto-saving
does not. I've tried re-installing VS Code and Flutter SDK but the problem still exists.
My newly installed VS Code only has the following extensions and settings:
Dart: v3.19.1
Flutter: v3.19.0
Auto-save
is set toafterDelay
of 1000ms
How do I hot reload when autosaving in vscode? Another person had the same issue two hours ago: https://github.com/Dart-Code/Dart-Code/issues/3110
解决方案
The latest version of Dart & Flutter's VS Code extension is causing the issue.
v3.20 and above: You can enable hot reload on autosave in the latest version by setting Flutter Hot Reload On Save
to always
in your VSCode settings.
v3.19: They disabled hot reload on autosave completely.
v3.18 and below: The extension hot reloads automatically when auto saving.
推荐阅读
- wordpress - 从登台转移到实时服务器后,WordPress 网站无法正常工作
- sql - 如何使用来自表 B 的中间值从表 A 访问表 C
- kerberos - Apache Ranger 无法在 Kerberos Hadoop 集群中安装
- php - 如何使用 RSA 2048 和摘要 sha256 签名文件数据?
- scala - 使用scala反射获取构造函数参数值
- node.js - HLF 结构网络无法从 node-red 连接到 IBP2 对等体
- entity-framework - 使用 EF6 和 SQLite 在视图中插入
- php - 当我尝试对多个数组进行排序时,array_multisort() 不起作用
- command-line-interface - 如何使用 IBM CLI 从 IBM 云对象存储导入图像
- php - EasyApache 4:“PHP 启动:无法加载动态库 'pdo_mysql.so'”