I have an already running Flutter project in Visual Studio Code, but I want to run a separate Dart file in the same project without terminate my running project.
When i tried to run this file, the running project stops.
I have an already running Flutter project in Visual Studio Code, but I want to run a separate Dart file in the same project without terminate my running project.
When i tried to run this file, the running project stops.
You can open your terminal and execute your dart file like
$ dart ./file.dart
To open the terminal, use any of this options:
Use the ⌃` keyboard shortcut with the backtick character.
Use the View > Terminal menu command.
From the Command Palette (⇧⌘P), use the View: Toggle Integrated Terminal command. https://code.visualstudio.com/docs/editor/integrated-terminal