From ed8fa6aea3d529ea586c24ce15b5f7522ac6c27c Mon Sep 17 00:00:00 2001 From: krahets Date: Mon, 17 Apr 2023 22:45:11 +0800 Subject: [PATCH] Add the code formatters in installation.md --- docs/chapter_appendix/installation.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/chapter_appendix/installation.md b/docs/chapter_appendix/installation.md index 2da7991e..ec348e91 100644 --- a/docs/chapter_appendix/installation.md +++ b/docs/chapter_appendix/installation.md @@ -1,23 +1,25 @@ # 编程环境安装 -## 安装 VSCode +## VSCode 本书推荐使用开源轻量的 VSCode 作为本地 IDE ,下载并安装 [VSCode](https://code.visualstudio.com/) 。 ## Java 环境 1. 下载并安装 [OpenJDK](https://jdk.java.net/18/)(版本需满足 > JDK 9)。 -2. 在 VSCode 的插件市场中搜索 `java` ,安装 Java Extension Pack 。 +2. 在 VSCode 的插件市场中搜索 `java` ,安装 Extension Pack for Java 。 ## C/C++ 环境 1. Windows 系统需要安装 [MinGW](https://sourceforge.net/projects/mingw-w64/files/)([配置教程](https://blog.csdn.net/qq_33698226/article/details/129031241)),MacOS 自带 Clang 无需安装。 2. 在 VSCode 的插件市场中搜索 `c++` ,安装 C/C++ Extension Pack 。 +3. (可选)打开 Settings 页面,搜索 `Clang_format_fallback Style` 代码格式化选项,设置为 `{ BasedOnStyle: Microsoft, BreakBeforeBraces: Attach }` 。 ## Python 环境 1. 下载并安装 [Miniconda3](https://docs.conda.io/en/latest/miniconda.html) 。 2. 在 VSCode 的插件市场中搜索 `python` ,安装 Python Extension Pack 。 +3. (可选)在命令行输入 `pip install black` ,安装代码格式化工具。 ## Go 环境 @@ -29,6 +31,7 @@ 1. 下载并安装 [node.js](https://nodejs.org/en/) 。 2. 在 VSCode 的插件市场中搜索 `javascript` ,安装 JavaScript (ES6) code snippets 。 +3. (可选)在 VSCode 的插件市场中搜索 `Prettier` ,安装代码格式化工具。 ## C# 环境