Home > Net >  Dart Input in VSCode
Dart Input in VSCode

Time:11-30

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.

CodePudding user response:

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.

CodePudding user response:

Aah, I have discovered the trick. I had not changed the directory to where the file was, I needed to "Cd" to the directory, then open the terminal and run "dart filename.dart".

  • Related