520GH训练营 - 周其衡 - 客户案例分享:GitHub Copilot 最佳实践解读

Download as pdf or txt
Download as pdf or txt
You are on page 1of 24

Transforming

your business
in a digital world with
GitHub Copilot X
Payton Chou
Technical Architect
Microsoft Technology Center
2
Analysis

1
Planning

3
Design

GitHub Copilot tomorrow 6


Refactoring code (code translate) Maintenance
Reviewing code (code explain)
Documentation 4 GitHub Copilot today
Implementation
Convert comments to code
5 Autofill for repetitive code
Testing & Show alternatives
GitHub Copilot tomorrow Integration
Unit testing
Finding code errors
Debugging
Code review
AI Pull Requests
GitHub Copilot X

(190) GitHub Copilot X - YouTube


GitHub Copilot X: The AI-powered developer experience

• 我們不僅採用了OpenAI的新
GPT-4模型,而且還為
Copilot引入了聊天和語音,
並讓Copilot拉取請求,命令
行和文檔來回答有關項目的
問題。

• GPT-4支援最多32k tokens

• 更強的回答能力

GitHub Copilot X: The AI-powered developer experience | The GitHub Blog


GitHub Next
A ChatGPT-like experience in your editor with
GitHub Copilot Chat
Copilot Labs 可以做什麼?
Code Brushes - 讓代碼更具可讀性

GitHub Next | Code Brushes


Code Brushes – 增加型別(Type)
Code Brushes - 修復簡單的錯誤(bugs)
Code Brushes – 加入除錯的語法
Code Brushes – 讓您的代碼更健全
Code Brushes - And more!
Explain this code
Translate this code
Test generation
Copilot for Pull Requests
範本擴展:自動給予PR請求描述的建議
Copilot for Pull Requests
Gentest:我們的原型使用 AI 來識別您的 PR 中可能缺少測試的更改,並建議您構建
或直接使用的測試
Copilot for Pull Requests
Ghost Text
Copilot for Pull Requests
Resolving issues with AI
Copilot for Pull Requests
Reviewing pull-requests with AI
Copilot Voice

• Write/edit code
• Control the IDE
• Code navigation
• Code Summarization

GitHub Next | Copilot


Voice
Copilot for CLI
• Three modes of interaction
• Copilot for CLI provides three shell
commands
• ??: General-purpose goto for
arbitrary shell commands.
• git?: Searching specifically for git
invocations.
• gh?: Combines the power of the
GitHub CLI command
Copilot for Docs

• Answers you can trust


• Copilot for Docs 使用最新資

• Empowering developers
• 在回應中連結到相關文件以
供將來參考
• Personalized content, on the fly
• 專門針對您提供最有用的答

• Include private content
• 從 GitHub 獲取內容的另一個
好處是,很容易回答有關團
隊私人內容的問題

GitHub Next | Copilot for Docs

You might also like