WebReinvent Internal Docs
Mac Setup

IDE Setup

Preferences

  • Generally depending on the team we are working with, we adopt the software.
  • As an example: For internal use we prefer android studio, for clients developers prefer VS Code, For the clients Testers prefer IntelliJ IDEA.
  • It also depends on the user, I would like to use the editor which makes me more productive. i.e. some users fide VS Code easier to debug the app when some users think Android studio is better.

  • For now, we will setup two IDEs
    1. Android Studio
    2. VS Code

Android studio setup

  • Step 1: Install Android Studio
  • Step 2: Install Plugins
    1. Start Android Studio.
    2. Open plugin preferences (Preferences > Plugins as of v3.6.3.0 or later).
    3. Select the Flutter plugin and click Install.
    4. Click Yes when prompted to install the Dart plugin.
    5. Click Restart when prompted.
  • Step 3 (Optional): Check out Editing tips for Flutter code and Use dart analysis for assistence.
  • Step 4 (Optional): Set max line length in Android Studio code editor.
    1. Go to preferences
    2. Search code style, select it
    3. Select subsection dart
    4. Change Hard Wrap At value and Apply.
  • Step 5 (Optional): Set Format code on save
    • Using Flutter to auto format code when saving:
    1. Go to Preferences
    2. Go to Language & Frameworks
    3. Go to Flutter
    4. Select 'Format code on save'.

VS Code setup


Copyright © 2024