You can use this configuration setting to control whether the device is flashed before every debug session. The default setting is true. You can override this setting in launch.json for specific debug configurations. See How to customize launch and debug configurations.