What is VSCode
Visual Studio Code (VS Code for short) is a free code editor developed by Microsoft that supports operating systems such as Windows, Linux and macOS. It supports testing and has built-in Git version control functions. It also has development environment functions, such as Code completion (similar to IntelliSense), code snippets, code refactoring, etc. The editor supports user-customized configuration, such as changing various attributes and parameters such as theme colors, keyboard shortcuts, etc. It also has built-in extension management functions in the editor. VSCode also supports Flutter development. In my daily development, I will use VSCode more than Android Studio.
Download and install VSCode
Open the VSCode official website
and double-click the exe
file after completion to install and open it.
After opening, find Extensions
or use the shortcut key to Ctrl+Shift+X
open the extension center.
Enter in the extension center flutter
, the first one displayed is the Flutter extension we want to install, click install.
New Project
After the installation is complete, click View
-> Command Palette...
(or use the shortcut key Ctrl+Shift+P
)
in flutter
turn, enter the keyword in the pop-up input box and press Enter, select the directory to be kept in the project, and enter the project name.
Note: After the project is created, VSCode will help us install Dart
language-related dependencies.
In this way, we have finished configuring the Flutter environment under VSCode.