This commit is contained in:
krahets
2026-04-03 18:46:15 +08:00
parent 377736b1bd
commit 9d21ca86b0
352 changed files with 46563 additions and 11262 deletions
+43 -43
View File
@@ -2,75 +2,75 @@
comments: true
---
# 16.1   インストール
# 16.1   プログラミング環境のインストール
## 16.1.1   IDEのインストール
## 16.1.1   IDE のインストール
ローカルの統合開発環境(IDE)として、オープンソースで軽量なVS Codeを使用することをお勧めします。[VS Code公式ウェブサイト](https://code.visualstudio.com/)にアクセスし、お使いのオペレーティングシステムに適したVS Codeのバージョンを選択してダウンロードしインストールしてください。
オープンソースで軽量な VS Code をローカルの統合開発環境(IDE)として使用することを推奨します。[VS Code 公式サイト](https://code.visualstudio.com/) にアクセスし、使用している OS に応じたバージョンの VS Code をダウンロードしインストールしてください。
![公式ウェブサイトからVS Codeをダウンロード](installation.assets/vscode_installation.png){ class="animation-figure" }
![公式サイトから VS Code をダウンロード](installation.assets/vscode_installation.png){ class="animation-figure" }
<p align="center"> 図 16-1 &nbsp; 公式ウェブサイトからVS Codeをダウンロード </p>
<p align="center"> 図 16-1 &nbsp; 公式サイトから VS Code をダウンロード </p>
VS Codeには強力な拡張機能エコシステムがあり、ほとんどのプログラミング言語の実行とデバッグをサポートしています。例えば、「Python Extension Pack」をインストールした後、Pythonコードをデバッグできます。インストール手順を下の図に示します。
VS Code には強力な拡張機能エコシステムがあり、ほとんどのプログラミング言語の実行とデバッグをサポートしています。Python を例にすると、「Python Extension Pack」拡張機能をインストールした後、Python コードをデバッグできるようになります。インストール手順を下に示します。
![VS Code拡張機能パックのインストール](installation.assets/vscode_extension_installation.png){ class="animation-figure" }
![VS Code 拡張機能のインストール](installation.assets/vscode_extension_installation.png){ class="animation-figure" }
<p align="center"> 図 16-2 &nbsp; VS Code拡張機能パックのインストール </p>
<p align="center"> 図 16-2 &nbsp; VS Code 拡張機能のインストール </p>
## 16.1.2 &nbsp; 言語環境のインストール
### 1. &nbsp; Python環境
### 1. &nbsp; Python 環境
1. [Miniconda3](https://docs.conda.io/en/latest/miniconda.html)をダウンロードしてインストールします。Python 3.10以降が必要です。
2. VS Code拡張機能マーケットプレイスで`python`を検索し、Python Extension Packをインストールします。
3. オプション)コマンドラインで`pip install black`を入力し、コードフォーマッティングツールをインストールします。
1. [Miniconda3](https://docs.conda.io/en/latest/miniconda.html) をダウンロードしてインストールします。Python 3.10 以降が必要です。
2. VS Code拡張機能マーケットプレイスで `python` を検索し、Python Extension Pack をインストールします。
3. 任意)コマンドラインで `pip install black` を入力し、コード整形ツールをインストールします。
### 2. &nbsp; C/C++環境
### 2. &nbsp; C/C++ 環境
1. Windowsシステムでは[MinGW](https://sourceforge.net/projects/mingw-w64/files/)をインストールする必要があります([設定チュートリアル](https://blog.csdn.net/qq_33698226/article/details/129031241))。MacOSにはClangが付属しているため、インストールは不要です。
2. VS Code拡張機能マーケットプレイスで`c++`を検索し、C/C++ Extension Packをインストールします。
3. オプション)設定ページを開き、`Clang_format_fallback Style`コードフォーマッティングオプションを検索し、`{ BasedOnStyle: Microsoft, BreakBeforeBraces: Attach }`に設定します。
1. Windows システムでは [MinGW](https://sourceforge.net/projects/mingw-w64/files/) をインストールする必要があります([設定チュートリアル](https://blog.csdn.net/qq_33698226/article/details/129031241))。MacOS には Clang が標準搭載されているため、追加インストールは不要です。
2. VS Code拡張機能マーケットプレイスで `c++` を検索し、C/C++ Extension Pack をインストールします。
3. 任意)Settings ページを開き、コード整形オプション `Clang_format_fallback Style` を検索し`{ BasedOnStyle: Microsoft, BreakBeforeBraces: Attach }` に設定します。
### 3. &nbsp; Java環境
### 3. &nbsp; Java 環境
1. [OpenJDK](https://jdk.java.net/18/)をダウンロードしてインストールします(バージョンはJDK 9より新しい必要があります)。
2. VS Code拡張機能マーケットプレイスで`java`を検索し、Extension Pack for Javaをインストールします。
1. [OpenJDK](https://jdk.java.net/18/) をダウンロードしてインストールします(バージョンは JDK 9 より新しい必要があります)。
2. VS Code拡張機能マーケットプレイスで `java` を検索し、Extension Pack for Java をインストールします。
### 4. &nbsp; C#環境
### 4. &nbsp; C# 環境
1. [.Net 8.0](https://dotnet.microsoft.com/en-us/download)をダウンロードしてインストールします。
2. VS Code拡張機能マーケットプレイスで`C# Dev Kit`を検索し、C# Dev Kitをインストールします([設定チュートリアル](https://code.visualstudio.com/docs/csharp/get-started))。
3. Visual Studioを使用することもできます([インストールチュートリアル](https://learn.microsoft.com/zh-cn/visualstudio/install/install-visual-studio?view=vs-2022))。
1. [.Net 8.0](https://dotnet.microsoft.com/en-us/download) をダウンロードしてインストールします。
2. VS Code拡張機能マーケットプレイスで `C# Dev Kit` を検索し、C# Dev Kit をインストールします([設定チュートリアル](https://code.visualstudio.com/docs/csharp/get-started))。
3. Visual Studio を使用することもできます([インストール手順](https://learn.microsoft.com/zh-cn/visualstudio/install/install-visual-studio?view=vs-2022))。
### 5. &nbsp; Go環境
### 5. &nbsp; Go 環境
1. [go](https://go.dev/dl/)をダウンロードしてインストールします。
2. VS Code拡張機能マーケットプレイスで`go`を検索し、Goをインストールします。
3. `Ctrl + Shift + P`を押してコマンドバーを呼び出し、goと入力し`Go: Install/Update Tools`を選択し、すべてを選択してインストールします。
1. [go](https://go.dev/dl/) をダウンロードしてインストールします。
2. VS Code拡張機能マーケットプレイスで `go` を検索し、Go をインストールします。
3. ショートカットキー `Ctrl + Shift + P` を押してコマンドパレットを開き、go と入力し`Go: Install/Update Tools` を選択し、すべてにチェックを入れてインストールします。
### 6. &nbsp; Swift環境
### 6. &nbsp; Swift 環境
1. [Swift](https://www.swift.org/download/)をダウンロードしてインストールします。
2. VS Code拡張機能マーケットプレイスで`swift`を検索し、[Swift for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=sswg.swift-lang)をインストールします。
1. [Swift](https://www.swift.org/download/) をダウンロードしてインストールします。
2. VS Code拡張機能マーケットプレイスで `swift` を検索し、[Swift for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=sswg.swift-lang) をインストールします。
### 7. &nbsp; JavaScript環境
### 7. &nbsp; JavaScript 環境
1. [Node.js](https://nodejs.org/en/)をダウンロードしてインストールします。
2. オプション)VS Code拡張機能マーケットプレイスで`Prettier`を検索し、コードフォーマッティングツールをインストールします。
1. [Node.js](https://nodejs.org/en/) をダウンロードしてインストールします。
2. 任意VS Code拡張機能マーケットプレイスで `Prettier` を検索し、コード整形ツールをインストールします。
### 8. &nbsp; TypeScript環境
### 8. &nbsp; TypeScript 環境
1. JavaScript環境と同じインストール手順に従います。
2. [TypeScript Execute (tsx)](https://github.com/privatenumber/tsx?tab=readme-ov-file#global-installation)をインストールします。
3. VS Code拡張機能マーケットプレイスで`typescript`を検索し、[Pretty TypeScript Errors](https://marketplace.visualstudio.com/items?itemName=yoavbls.pretty-ts-errors)をインストールします。
1. JavaScript 環境と同じ手順でインストールます。
2. [TypeScript Execute (tsx)](https://github.com/privatenumber/tsx?tab=readme-ov-file#global-installation) をインストールします。
3. VS Code拡張機能マーケットプレイスで `typescript` を検索し、[Pretty TypeScript Errors](https://marketplace.visualstudio.com/items?itemName=yoavbls.pretty-ts-errors) をインストールします。
### 9. &nbsp; Dart環境
### 9. &nbsp; Dart 環境
1. [Dart](https://dart.dev/get-dart)をダウンロードしてインストールします。
2. VS Code拡張機能マーケットプレイスで`dart`を検索し、[Dart](https://marketplace.visualstudio.com/items?itemName=Dart-Code.dart-code)をインストールします。
1. [Dart](https://dart.dev/get-dart) をダウンロードしてインストールします。
2. VS Code拡張機能マーケットプレイスで `dart` を検索し、[Dart](https://marketplace.visualstudio.com/items?itemName=Dart-Code.dart-code) をインストールします。
### 10. &nbsp; Rust環境
### 10. &nbsp; Rust 環境
1. [Rust](https://www.rust-lang.org/tools/install)をダウンロードしてインストールします。
2. VS Code拡張機能マーケットプレイスで`rust`を検索し、[rust-analyzer](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer)をインストールします。
1. [Rust](https://www.rust-lang.org/tools/install) をダウンロードしてインストールします。
2. VS Code拡張機能マーケットプレイスで `rust` を検索し、[rust-analyzer](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer) をインストールします。