- Open CodeRunner app.
- Go to
CodeRunner/Preferences/Languages
.
- Click on the
+
button at the end of the languages to add another language.

- Do the following steps to setup Dart as language mode in coderunner app :
- Rename language name from Untitled to
Dart
.
- Set Run Command as
dart $filename
.
- Set File Extension as
.dart
.
- Set Syntax mode as
Dart
.
5. Install Dart using HomeBrew in Terminal :
- brew tap dart-lang/dart
- brew install dart
If you get any error, try this before executing above commands :
export ALL_PROXY=$http_proxy:port
If you get any error like : Error: Your Command Line Tools are too outdated.
then try this :
Update them from Software Update in System Preferences or run:
softwareupdate --all --install --force
If that doesn't show you any updates, run:
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
- Now, let’s run sample dart code by selecting Dart as language and writing Hello World dart code :

Dart setup successfully :)