From fc82b229c90da229cd4876b5506d0b18c5994db3 Mon Sep 17 00:00:00 2001 From: Wenda Zhang Date: Tue, 27 Feb 2024 09:44:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=BC=96=E8=BE=91=E5=99=A8?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chapter2_installation.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/chapter2_installation.md b/chapter2_installation.md index 4adbabf..89402bf 100644 --- a/chapter2_installation.md +++ b/chapter2_installation.md @@ -332,6 +332,35 @@ System is shutting down with exit code -1. 如果能看到以上输出,riscv-pke的代码获取(和验证)就已经完成,可以开始实验了。 +#### 添加编辑器配置文件 + +PKE实验涉及到了多种编程语言,每种的缩进方式都不尽相同,建议使用各大编辑器通用的editorconfig来配置。可以在PKE目录下添加一个名为`.editorconfig`的文件,内容为: + +```editorconfig +; https://editorconfig.org + +root = true + +[*] +end_of_line = lf +insert_final_newline = true +indent_style = space +indent_size = 2 + +[*.{c,h}] +indent_size = 2 + +[*.S] +indent_size = 4 + +[*.ld] +indent_size = 2 + +[Makefile] +indent_style = tab +indent_size = 8 +``` + ## 2.3 PKE实验的组成 -- Gitee