Skip to content

Commit

Permalink
improved.
Browse files Browse the repository at this point in the history
  • Loading branch information
huanlin committed Feb 19, 2024
1 parent d89a8cd commit 94e3de9
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 15 additions & 2 deletions content/en/blog/2024-02-18-ai-assisted-programming/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ https://github.com/settings/copilot

Copilot 官方文件提供了 VS Code、Visual Studio、JetBrains 等 IDE 的安裝說明,可由此進入:[Getting started with GitHub Copilot](https://docs.github.com/en/copilot/using-github-copilot/getting-started-with-github-copilot),然後從頁面上方選擇你使用的 IDE。

我在 VS Code 和 Visual Studio 都安裝了以下擴充功能:

- [GitHub Copilot](https://marketplace.visualstudio.com/items?itemName=GitHub.copilot)
- [GitHub Copilot Chat](https://marketplace.visualstudio.com/items?itemName=GitHub.copilot-chat)

我的 Visual Studio 還有安裝 [Visual chatGPT Studio extension](https://marketplace.visualstudio.com/items?itemName=jefferson-pires.VisualChatGPTStudio)

### For Visual Studio

如果是 Visual Studio,有兩個使用須知:
Expand All @@ -71,8 +78,6 @@ Copilot 建議的程式碼會以灰色字體呈現,此時按 Tab 鍵即可接

![](images/vs-output-copilot.png)

> 備註:我的 Visual Studio 還有安裝 [Visual chatGPT Studio extension](https://marketplace.visualstudio.com/items?itemName=jefferson-pires.VisualChatGPTStudio)
## 測試看看

在 VS Code 或 Visual Studio 中編輯一個 C# 程式檔案,輸入以下註解:
Expand All @@ -97,6 +102,14 @@ Console.WriteLine("Hello, World!");

> 三不五時可能要登入 GitHub 網站查看用量和費用。
當你在 VS Code 編輯器中敲入文字時,如果看到如下圖的星星圖案,可以用滑鼠點一下來打開 inline chat 文字框,然後對 Copilot 下達指令。

![](images/vscopilot-inline-chat.png)

這個 inline chat 功能是由 GitHub Copilot Chat extension 提供。你也可以從 VS Code 的 Activity Bar 開啟 Chat 面板,如下圖所示:

![](images/vscode-copilot-chat.png)

## 結語

- Copilot 強大好用,能大幅提高生產力。
Expand Down
5 changes: 5 additions & 0 deletions content/en/blog/road-to-kubernetes/chapter-1/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@





0 comments on commit 94e3de9

Please sign in to comment.