You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
3.8 KiB
3.8 KiB
Installation
Install IDE
We recommend using the open-source, lightweight VS Code as your local Integrated Development Environment (IDE). Visit the VS Code official website and choose the version of VS Code appropriate for your operating system to download and install.
VS Code has a powerful extension ecosystem, supporting the execution and debugging of most programming languages. For example, after installing the "Python Extension Pack," you can debug Python code. The installation steps are shown in the figure below.
Install language environments
Python environment
- Download and install Miniconda3, requiring Python 3.10 or newer.
- In the VS Code extension marketplace, search for
python
and install the Python Extension Pack. - (Optional) Enter
pip install black
in the command line to install the code formatting tool.
C/C++ environment
- Windows systems need to install MinGW (Configuration tutorial); MacOS comes with Clang, so no installation is necessary.
- In the VS Code extension marketplace, search for
c++
and install the C/C++ Extension Pack. - (Optional) Open the Settings page, search for the
Clang_format_fallback Style
code formatting option, and set it to{ BasedOnStyle: Microsoft, BreakBeforeBraces: Attach }
.
Java environment
- Download and install OpenJDK (version must be > JDK 9).
- In the VS Code extension marketplace, search for
java
and install the Extension Pack for Java.
C# environment
- Download and install .Net 8.0.
- In the VS Code extension marketplace, search for
C# Dev Kit
and install the C# Dev Kit (Configuration tutorial). - You can also use Visual Studio (Installation tutorial).
Go environment
- Download and install go.
- In the VS Code extension marketplace, search for
go
and install Go. - Press
Ctrl + Shift + P
to call up the command bar, enter go, chooseGo: Install/Update Tools
, select all and install.
Swift environment
- Download and install Swift.
- In the VS Code extension marketplace, search for
swift
and install Swift for Visual Studio Code.
JavaScript environment
- Download and install Node.js.
- (Optional) In the VS Code extension marketplace, search for
Prettier
and install the code formatting tool.
TypeScript environment
- Follow the same installation steps as the JavaScript environment.
- Install TypeScript Execute (tsx).
- In the VS Code extension marketplace, search for
typescript
and install Pretty TypeScript Errors.
Dart environment
Rust environment
- Download and install Rust.
- In the VS Code extension marketplace, search for
rust
and install rust-analyzer.