Installing VS Code
This guide provides the installation instructions for Visual Studio Code (VS Code) on Windows, macOS, and Linux along with helpful video links for each platform.
Prerequisites
Ensure your system meets the minimum requirements:
- Windows: Windows Setup Requirements
- macOS: macOS Setup Requirements
- Linux: Linux Setup Requirements
Step 1: Install Visual Studio Code (VS Code)
Windows:
-
Download the Installer:
- Download the installer from VS Code for Windows.
- Run the installer
VSCodeUserSetup-x64-<version>.exe
.
-
Setup Instructions:
- Choose the installation location.
- Ensure that the option to Add to PATH is selected during the installation process.
-
Finish the installation and launch VS Code.
macOS:
-
Download the
.dmg
file:- Download from VS Code for macOS.
-
Install:
- Double-click the downloaded
.dmg
file to mount it. - Drag the VS Code application to your Applications folder.
- Double-click the downloaded
-
Open VS Code from the Applications folder.
Linux:
-
Debian/Ubuntu:
- Download the
.deb
file from VS Code for Debian/Ubuntu. - Open the terminal and run:
sudo apt install ./<path-to-vscode>.deb
- Download the
-
Red Hat/Fedora:
- Download the
.rpm
file from VS Code for Red Hat/Fedora. - Open the terminal and run:
sudo rpm -i <path-to-vscode>.rpm
- Download the
-
Using Snap:
- Run the following command to install VS Code:
sudo snap install --classic code
- Run the following command to install VS Code:
Step 2: Install Flutter & Dart Extensions in VS 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
Step 3: Verify Installation
- Run VS Code.
- Open the Command Palette (
Ctrl+Shift+P
) and typeFlutter: New Project
to create a new Flutter project. - Run your project to make sure everything is set up correctly.
Video Guides for VS Code Installation
Windows Installation Video:
macOS Installation Video:
Linux Installation Video:
Step 4: 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
flutter
folder toC:\src\flutter
. - Mac/Linux: Extract the Flutter SDK to
~/development/flutter
or a similar directory of your choice.
- Windows: Extract the
-
Add Flutter to PATH:
- Windows: Add
C:\src\flutter\bin
to your systemPATH
environment 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/bin"
After that, run the following command to apply the changes:
source ~/.bash_profile # macOS
source ~/.zshrc # Linux - Windows: Add
-
Run
flutter doctor
to ensure everything is set up. -
Install Plugins:
- Open Android Studio > Preferences > Plugins > Install Flutter and Dart.
TIPS:
- Flutter Doctor: Run
flutter doctor
to check for missing dependencies. - For issues, refer to the Flutter docs or VS Code docs.