skip to Main Content

How to get input in dart on vscode?

When I click the "Run" button, it only runs the code on the uneditable-terminal, but when I use the "F5" button to run it, as in Python, it brings an error that I need to do some installation and/or configurations, and it auto-creates a "launch.json" file.

2

Answers


  1. Chosen as BEST ANSWER

    Use cd to get into the directory, then open the terminal and run dart filename.dart.


  2. please make sure that your dart sdk is installed correctly and then ensure that you install the dart extension for VS code. That should sort you out.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search