Skip to content

Commit

Permalink
style: format
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxtuneLee committed Dec 18, 2023
1 parent 7114f05 commit 01942e6
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
- [南科手册](https://sustech.online/surroundings/)

# 贡献
如果你想贡献内容,请仔细阅读 [CONTRIBUTION.md](/contribution.html)
如果你想贡献内容,请仔细阅读 [CONTRIBUTION.md](/CONTRIBUTION.html)

36 changes: 18 additions & 18 deletions blog/posts/2020-10-25-CSharp-environment-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,33 +20,33 @@ tags: C# .NET Tutorial

2. 运行安装向导,完成后在终端中输入 `dotnet`,将看到以下信息:

```dotnetcli
```dotnetcli
> dotnet
Usage: dotnet [options]
Usage: dotnet [path-to-application]
Options:
-h|--help Display help.
--info Display .NET information.
--list-sdks Display the installed SDKs.
--list-runtimes Display the installed runtimes.
-h|--help Display help.
--info Display .NET information.
--list-sdks Display the installed SDKs.
--list-runtimes Display the installed runtimes.
path-to-application:
The path to an application .dll file to execute.
```
The path to an application .dll file to execute.
```

3. 在想创建项目的文件夹运行终端,输入

```dotnetcli
```dotnetcli
dotnet new console -o HelloWorldApp
```
```

等待命令执行完成,这将创建一个 HelloWorldApp 文件夹
等待命令执行完成,这将创建一个 HelloWorldApp 文件夹

4. 用代码编辑器(建议使用 [Visual Studio Code](https://code.visualstudio.com/))打开 HelloWorldApp 文件夹,其中的 Program.cs 文件应如下所示:
1. 用代码编辑器(建议使用 [Visual Studio Code](https://code.visualstudio.com/))打开 HelloWorldApp 文件夹,其中的 Program.cs 文件应如下所示:

```csharp
```csharp
using System;

namespace HelloWorldApp
Expand All @@ -59,13 +59,13 @@ tags: C# .NET Tutorial
}
}
}
```
```

5. 在 HelloWorldApp 文件夹中,执行
2. 在 HelloWorldApp 文件夹中,执行

```dotnetcli
```dotnetcli
dotnet run
```
```

程序将运行并输出 `Hello World!`

Expand Down Expand Up @@ -94,7 +94,7 @@ tags: C# .NET Tutorial

5. 将自动打开 Program.cs 文件,代码如下:

```csharp
```csharp
using System;

namespace HelloWorldApp
Expand All @@ -107,7 +107,7 @@ tags: C# .NET Tutorial
}
}
}
```
```

6. 按 F5 启动程序,程序将输出 `Hello World!` 与进程退出提示

Expand Down
6 changes: 3 additions & 3 deletions blog/posts/2021-09-30-java-environment-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@
3. 运行安装包,在安装向导界面中点击“安装”并等待程序自动安装。
4. 使用默认设置完成安装,Windows 系统请确保 Add to PATH 和 Set JAVA_HOME variable 已勾选。

![安装过程截图](../../assets/img/blog/java-environment/java-installation.png)
![安装过程截图](../../assets/img/blog/java-environment/java-installation.png)

![安装完毕截图](../../assets/img/blog/java-environment/java-installation-completed.png)
![安装完毕截图](../../assets/img/blog/java-environment/java-installation-completed.png)

5. 请打开系统终端,执行 `java --version` 查看是否安装成功。

![java --version 执行结果](../../assets/img/blog/java-environment/java-version.png)
![java --version 执行结果](../../assets/img/blog/java-environment/java-version.png)
- OpenJDK 官网:<https://openjdk.java.net/>
- 其他 OpenJDK 预编译包:
- Microsoft 编译版本:<https://www.microsoft.com/openjdk>
Expand Down

0 comments on commit 01942e6

Please sign in to comment.