Visual Studio Code

Description: A lightweight but powerful source code editor from Microsoft, with support for many programming languages through extensions.

Setup:

  1. Install Visual Studio Code.
  2. Open Visual Studio Code.
  3. Go to the Extensions view by clicking the Extensions icon in the Activity Bar on the side of the window or by pressing Ctrl+Shift+X.
  4. Search for “Dart” and install the Dart extension.
  5. If you are planning to use Flutter, search for and install the “Flutter” extension as well.

IntelliJ IDEA / Android Studio

Description: IntelliJ IDEA is a powerful, full-featured IDE from JetBrains, well-suited for Dart and Flutter development. Android Studio, also based on IntelliJ, is optimized for Android development but supports Dart through plugins.

Setup:

  1. Download and install IntelliJ IDEA or Android Studio.
  2. Open IntelliJ IDEA or Android Studio.
  3. Go to File > Settings (or Preferences on macOS) > Plugins.
  4. Search for “Dart” and install the Dart plugin.
  5. If you are planning to use Flutter, search for and install the “Flutter” plugin.

Atom

Description: A hackable text editor for the 21st century, created by GitHub. It supports many languages and frameworks through plugins.

Setup:

  1. Download and install Atom.
  2. Open Atom.
  3. Install the Dart and Flutter plugins:
    • Go to Edit > Preferences (or Atom > Preferences on macOS) > Install.
    • Search for dart and install the dart package.
    • If you are planning to use Flutter, search for and install the flutter package.

Emacs

Description: A highly customizable text editor with a rich ecosystem of plugins.

Setup:

  1. Install Emacs.
  2. Open Emacs and install the lsp-mode for Language Server Protocol support.
  3. Add Dart support to lsp-mode:
    • Add the following to your Emacs configuration file (usually .emacs or .emacs.d/init.el):
        (require 'lsp-mode)
      (add-hook 'dart-mode-hook #'lsp)
        
  4. Install the dart-mode:
    • Add the following to your Emacs configuration file:
        (use-package dart-mode
        :hook (dart-mode . lsp)
        :config
        (setq dart-format-on-save t))
        

Sublime Text

Description: A sophisticated text editor for code, markup, and prose. It features a rich ecosystem of plugins.

Setup:

  1. Download and install Sublime Text.
  2. Install the Dart package:
    • Open Sublime Text.
    • Open the command palette (Ctrl+Shift+P or Cmd+Shift+P on macOS).
    • Type Install Package and select Package Control: Install Package.
    • Search for Dart and install it.