Installing VS Code
- This guide provides installation instructions for Android Studio on Windows, macOS, and Linux with helpful video links for each platform.
Requirements:
Ensure your system satisfies the basic requirements:
- Windows: VS Code for Windows
- MacOs: VS Code for MacOs
- Linux: VS Code for Linux
Windows:
- 1. Download the Installer:
- Download the installer from VS Code for Windows.
- Run the installer
VSCodeUserSetup-x64-<version>.exe.
- 2. Setup Instructions:
- Choose the installation location.
- Ensure that the option to Add to PATH is selected during the installation process.
- 3. Finish the installation and launch VS Code.
macOS:
- 1. Download the .dmg file::
- Download from VS Code for macOS
- 2. Install:
- Double-click the downloaded
.dmgfile to mount it. - Drag the VS Code application to your Applications folder.
- 3. Open VS Code from the Applications folder.
Linux:
- 1.Ubuntu:
- Download the
.debfile from VS Code for Ubuntu. - Open the terminal and run:
- 2.Red Hat/Fedora:
- Download the
.rpmfile from VS Code for Red Hat/Fedora. - Open the terminal and run:
sudo apt install ./.deb
sudo rpm -i .rpm
- 3. Using Snap:
- Run the following command to install VS Code:
sudo snap install --classic code
- Open VS Code.
- Install Extensions:
- Go to the Extensions view by pressing
Ctrl+Shift+X. - Search for Flutter and click Install.
- Search for Dart and click Install.
- Go to the Extensions view by pressing
Set Up Flutter
-
Download the Flutter SDK:
- Go to the Flutter installation page and download the latest stable release for your operating system.
-
Extract Flutter:
- Windows: Extract the
flutterfolder toC:\src\flutter. - Mac/Linux: Extract the Flutter SDK to
~/development/flutteror a similar directory of your choice.
- Windows: Extract the
-
Add Flutter to PATH:
- Windows: Add
C:\src\flutter\binto your systemPATHenvironment variable. - Mac/Linux: Open your terminal and add the following line to your
.bash_profile(macOS) or.zshrc(Linux):
export PATH="$PATH:<path_to_flutter>/flutter/binAfter that, run the following command to apply the changes:
MacOs
source ~/.bash_profileLinux
source ~/.zshrc - Windows: Add
-
Run
flutter doctorto ensure everything is set up. -
Install Plugins:
- Open Android Studio > Preferences > Plugins > Install Flutter and Dart.
Notes:
- Run VS Code.
- Open the Command Palette (
Ctrl+Shift+P) and typeFlutter: New Projectto create a new Flutter project. - Run your project to make sure everything is set up correctly.