16.1 Setting up a programming environment¶
16.1.1 Install an IDE¶
We recommend VS Code, a lightweight, open-source integrated development environment (IDE). Visit the VS Code website, then download and install the version for your operating system.

Figure 16-1 Downloading VS Code from the official website
VS Code has an extensive ecosystem of extensions that support running and debugging code in most programming languages. For example, installing the Python Extension Pack lets you debug Python code. The installation steps are shown in Figure 16-2.

Figure 16-2 Installing VS Code extensions
16.1.2 Install a language environment¶
1. Python¶
- Download and install Miniconda3. Python 3.10 or later is required.
- Search for
pythonin the VS Code Extensions Marketplace and install Python Extension Pack. - (Optional) Run
pip install blackin a terminal to install a code formatter.
2. C/C++¶
- On Windows, install MinGW (setup guide). macOS comes with Clang, so no installation is needed.
- Search for
c++in the VS Code Extensions Marketplace and install C/C++ Extension Pack. - (Optional) Open Settings, search for the
Clang_format_fallback Styleformatting option, and set it to{ BasedOnStyle: Microsoft, BreakBeforeBraces: Attach }.
3. Java¶
- Download and install OpenJDK (a version later than JDK 9 is required).
- Search for
javain the VS Code Extensions Marketplace and install Extension Pack for Java.
4. C#¶
- Download and install .NET 8.0.
- Search for
C# Dev Kitin the VS Code Extensions Marketplace and install C# Dev Kit (setup guide). - You can also use Visual Studio (installation guide).
5. Go¶
- Download and install Go.
- Search for
goin the VS Code Extensions Marketplace and install Go. - Press
Ctrl + Shift + Pto open the Command Palette, enter go, selectGo: Install/Update Tools, then select and install all the tools.
6. Swift¶
- Download and install Swift.
- Search for
swiftin the VS Code Extensions Marketplace and install Swift for Visual Studio Code.
7. JavaScript¶
- Download and install Node.js.
- (Optional) Search for
Prettierin the VS Code Extensions Marketplace and install this code formatter.
8. TypeScript¶
- Follow the JavaScript environment setup steps.
- Install TypeScript Execute (tsx).
- Search for
typescriptin the VS Code Extensions Marketplace and install Pretty TypeScript Errors.
9. Dart¶
10. Rust¶
- Download and install Rust.
- Search for
rustin the VS Code Extensions Marketplace and install rust-analyzer.