Skip to content

Instantly share code, notes, and snippets.

@damondouglas
Last active August 29, 2015 13:56
Show Gist options
  • Save damondouglas/9085678 to your computer and use it in GitHub Desktop.
Save damondouglas/9085678 to your computer and use it in GitHub Desktop.
How to set up sublime and terminal for Dart Programming.

How to set up sublime and terminal for Dart Programming (If you use mac).

Install Dart

  1. Download Dart

  2. Copy dart to /usr/local/dart

unzip darteditor-macos-x64.zip
cp -R path/to/unzipped/dart /usr/local/dart

Setup Terminal

Edit ~/.bash_profile or ~/.exports:

export PATH="/usr/local/dart/dart-sdk/bin":$PATH

Rerun ~/.bash_profile and Check dart version:

. ~/.bash_profile
dart --version

Setup Sublime

  1. Install Package Control
  2. Open the command palette (CTRL-SHIFT-P or CMD-SHIFT-P), type 'Install' and select 'Package Control: Install Package' from the list. Next, type 'Dart' and select the Dart package from the list.

Optional Update Dart Script

see updatedart.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment