Hot Restart (previously Full restart) in Flutter VS Code whilst debugging
When debugging you can press Ctrl
+F5
for a full restart, or you can run the Flutter: Full Restart
command from the VS Code's command palette (Ctrl
+Shift
+P
or Cmd
+Shift
+P
for macOS).
Note: In the next version (v2.13.0, which there's a beta of available) "Full Restart" has been renamed to "Hot Restart" to better reflect how it works (this is happening across the other Flutter tools and docs too).
Related info:
- Flutter VS Code docs
- Dart Code keybindings
- Dart Code debugging commands
The chosen answer wasn't working for me with Flutter 1.2.1 so I used this solution:
- get the Flutter extension
- search for
dart.flutterDebuggerRestartBehaviour
in VS Code settings and set it tohotRestart
start the debugger (F5) and click the restart button when you want to hot restart: