时间格式处理
This commit is contained in:
parent
3970cf5669
commit
c345373c4f
14
notes/copilot/github-copilot.md
Normal file
14
notes/copilot/github-copilot.md
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
# 使用 Github Copilot 自动编码
|
||||||
|
|
||||||
|
## 什么是 Github Copilot
|
||||||
|
|
||||||
|
Github Copilot 是 Github 与 OpenAI 合作推出的一款基于人工智能的代码自动补全工具。它可以根据上下文提示,自动生成代码片段,帮助开发者提高编码效率。
|
||||||
|
|
||||||
|
## 如何使用 Github Copilot
|
||||||
|
|
||||||
|
Github Copilot 作为插件的在 Visual Studio Code 和 Visual Studio 中使用。安装插件后,即可在编码过程中使用。
|
||||||
|
|
||||||
|
## Github Copilot 是收费的吗
|
||||||
|
|
||||||
|
Github Copilot 是收费的,但是在 2021 年 7 月 1 日至 2022 年 6 月 30 日期间,Github Copilot 将免费提供给所有用户使用。
|
||||||
|
|
@ -102,6 +102,20 @@ public class AcceptLanguageHeaderOperationFilter : IOperationFilter
|
|||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## 实现数据展示的全球化
|
||||||
|
|
||||||
|
```csharp
|
||||||
|
|
||||||
|
public class HelloWorldController(IStringLocalizerFactory stringLocalizerFactory) : ControllerBase
|
||||||
|
{
|
||||||
|
[HttpGet("time")]
|
||||||
|
public IActionResult GetTime(
|
||||||
|
{
|
||||||
|
return Ok(TimeProvider.UtcNow.ToString());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## 实现模型和属性的本地化
|
## 实现模型和属性的本地化
|
||||||
|
|
||||||
```csharp
|
```csharp
|
||||||
|
Loading…
Reference in New Issue
Block a user