text
stringlengths
1
372
to see the effect of your changes almost instantly with the
stateful hot reload feature.
to learn more, check out hot reload.
<topic_end>
<topic_start>
advanced debugging
you might find the following advanced debugging tips useful:
<topic_end>
<topic_start>
debugging visual layout issues
during a debug session,
several additional debugging commands are added to the
command palette and to the flutter inspector.
when space is limited, the icon is used as the visual
version of the label.
<topic_end>
<topic_start>
debugging external libraries
by default, debugging an external library is disabled
in the flutter extension. to enable:
<topic_end>
<topic_start>
editing tips for flutter code
if you have additional tips we should share, let us know!
<topic_end>
<topic_start>
assists & quick fixes
assists are code changes related to a certain code identifier.
a number of these are available when the cursor is placed on a
flutter widget identifier, as indicated by the yellow lightbulb icon.
to invoke the assist, click the lightbulb as shown in the following screenshot:
you can also press ctrl / cmd + .
quick fixes are similar,
only they are shown with a piece of code has an error and they
can assist in correcting it.
<topic_end>
<topic_start>
snippets
snippets can be used to speed up entering typical code structures.
they are invoked by typing their prefix,
and then selecting from the code completion window:
the flutter extension includes the following snippets:
you can also define custom snippets by executing
configure user snippets from the command palette.
<topic_end>
<topic_start>
keyboard shortcuts
you can also press ctrl + f5
(cmd + f5 on macOS).
keyboard mappings can be changed by executing the
open keyboard shortcuts command from the command palette.
<topic_end>
<topic_start>
hot reload vs. hot restart
hot reload works by injecting updated source code files into the
running dart VM (virtual machine). this includes not only
adding new classes, but also adding methods and fields to
existing classes, and changing existing functions.
a few types of code changes cannot be hot reloaded though:
for these changes, restart your app without
ending your debugging session. to perform a hot restart,
run the flutter: hot restart command from the command palette.
you can also press
ctrl + shift + f5
or cmd + shift + f5 on macOS.
<topic_end>
<topic_start>
troubleshooting
<topic_end>
<topic_start>
known issues and feedback
all known bugs are tracked in the issue tracker:
dart and flutter extensions GitHub issue tracker.
we welcome feedback,
both on bugs/issues and feature requests.
prior to filing new issues:
when filing new issues, include flutter doctor output.
<topic_end>
<topic_start>
DevTools
<topic_end>
<topic_start>
what is DevTools?
DevTools is a suite of performance and debugging tools
for dart and flutter.
for a video introduction to DevTools, check out
the following deep dive and use case walkthrough:
dive in to DevTools
<topic_end>
<topic_start>
what can i do with DevTools?
here are some of the things you can do with DevTools:
we expect you to use DevTools in conjunction with
your existing IDE or command-line based development workflow.
<topic_end>
<topic_start>
how to start DevTools
see the VS code, android Studio/IntelliJ, or
command line pages for instructions on how to start DevTools.
<topic_end>