Skip to content

Commit 9369c95

Browse files
Merge pull request #54337 from ChrisHowd/April-2026-Update-Implement-Code-GH-Copilot
Content refresh
2 parents 5325d81 + e16f8f0 commit 9369c95

16 files changed

Lines changed: 97 additions & 58 deletions

learn-pr/wwl-azure/implement-code-improvements-using-github-copilot-tools/1-introduction.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Introduction
44
metadata:
55
title: Introduction
66
description: "Introduction"
7-
ms.date: 03/03/2026
7+
ms.date: 04/16/2026
88
author: chrishowd
99
ms.author: cahowd
1010
ms.topic: unit

learn-pr/wwl-azure/implement-code-improvements-using-github-copilot-tools/10-summary.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Summary
44
metadata:
55
title: Summary
66
description: "Summary"
7-
ms.date: 03/03/2026
7+
ms.date: 04/16/2026
88
author: chrishowd
99
ms.author: cahowd
1010
ms.topic: unit

learn-pr/wwl-azure/implement-code-improvements-using-github-copilot-tools/2-review-github-copilot-code-improvement-features.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Review GitHub Copilot's code improvement features
44
metadata:
55
title: Review GitHub Copilot's code improvement features
66
description: "Review GitHub Copilot's code improvement features"
7-
ms.date: 03/03/2026
7+
ms.date: 04/16/2026
88
author: chrishowd
99
ms.author: cahowd
1010
ms.topic: unit

learn-pr/wwl-azure/implement-code-improvements-using-github-copilot-tools/3-examine-github-copilot-fix-options.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Examine GitHub Copilot's quick fix options
44
metadata:
55
title: Examine GitHub Copilot's quick fix options
66
description: "Examine GitHub Copilot's quick fix options"
7-
ms.date: 03/03/2026
7+
ms.date: 04/16/2026
88
author: chrishowd
99
ms.author: cahowd
1010
ms.topic: unit

learn-pr/wwl-azure/implement-code-improvements-using-github-copilot-tools/4-review-code-refactoring-scenarios.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Review code refactoring scenarios and GitHub Copilot best practices
44
metadata:
55
title: Review code refactoring scenarios and GitHub Copilot best practices
66
description: "Review common code refactoring scenarios"
7-
ms.date: 03/03/2026
7+
ms.date: 04/16/2026
88
author: chrishowd
99
ms.author: cahowd
1010
ms.topic: unit

learn-pr/wwl-azure/implement-code-improvements-using-github-copilot-tools/5-refactor-code-github-copilot-inline-chat.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Refactor code using GitHub Copilot Inline Chat
44
metadata:
55
title: Refactor code using GitHub Copilot Inline Chat
66
description: "Refactor code using GitHub Copilot Inline Chat"
7-
ms.date: 03/03/2026
7+
ms.date: 04/16/2026
88
author: chrishowd
99
ms.author: cahowd
1010
ms.topic: unit

learn-pr/wwl-azure/implement-code-improvements-using-github-copilot-tools/6-refactor-code-github-copilot-chat-modes.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Refactor code using GitHub Copilot Chat modes
44
metadata:
55
title: Refactor code using GitHub Copilot Chat modes
66
description: "Refactor code using GitHub Copilot Chat modes"
7-
ms.date: 03/03/2026
7+
ms.date: 04/16/2026
88
author: chrishowd
99
ms.author: cahowd
1010
ms.topic: unit

learn-pr/wwl-azure/implement-code-improvements-using-github-copilot-tools/7-examine-github-copilot-code-review-features.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Examine the GitHub Copilot code review features
44
metadata:
55
title: Examine the GitHub Copilot code review features
66
description: "Examine the GitHub Copilot code review features"
7-
ms.date: 03/03/2026
7+
ms.date: 04/16/2026
88
author: chrishowd
99
ms.author: cahowd
1010
ms.topic: unit

learn-pr/wwl-azure/implement-code-improvements-using-github-copilot-tools/8-exercise-refactor-existing-code-github-copilot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Exercise - Refactor existing code using GitHub Copilot
44
metadata:
55
title: Exercise - Refactor existing code using GitHub Copilot
66
description: "Exercise - Refactor existing code using GitHub Copilot."
7-
ms.date: 03/03/2026
7+
ms.date: 04/16/2026
88
author: chrishowd
99
ms.author: cahowd
1010
ms.topic: unit

learn-pr/wwl-azure/implement-code-improvements-using-github-copilot-tools/9-knowledge-check.yml

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Module assessment
44
metadata:
55
title: Module assessment
66
description: "Knowledge check"
7-
ms.date: 03/03/2026
7+
ms.date: 04/16/2026
88
author: chrishowd
99
ms.author: cahowd
1010
ms.topic: unit
@@ -47,58 +47,58 @@ quiz:
4747
- content: "To add new features or enhancements to the code."
4848
isCorrect: false
4949
explanation: "Incorrect. Code refactoring isn't primarily about adding new features or enhancements, but about improving the internal structure of the code."
50-
- content: "What factors can be considered when working on code quality improvements?"
50+
- content: "What is the benefit of using `#codebase` when constructing a prompt in GitHub Copilot Chat?"
5151
choices:
52-
- content: "The number of lines of code in the program."
52+
- content: "It limits the search to only the currently open file."
5353
isCorrect: false
54-
explanation: "Incorrect. The number of lines of code isn't a primary factor in determining code quality."
55-
- content: "The time required to write code."
54+
explanation: "Incorrect. `#codebase` isn't limited to a single file. It searches across your entire project."
55+
- content: "It downloads external code samples from GitHub.com into the current project."
5656
isCorrect: false
57-
explanation: "Incorrect. The time required to write code doesn't directly impact code quality."
58-
- content: "Readability, complexity, modularity, reusability, testability, extensibility, reliability, performance, security, scalability, usability, and portability."
57+
explanation: "Incorrect. `#codebase` doesn't download external code. It performs a search within your local workspace."
58+
- content: "It lets GitHub Copilot automatically find relevant files across the codebase by performing a code search."
5959
isCorrect: true
60-
explanation: "Correct. These are all important factors to consider when working on code quality improvements."
61-
- content: "What is the importance of context and intent when developing prompts for GitHub Copilot agents?"
60+
explanation: "Correct. Using `#codebase` in a prompt lets GitHub Copilot search across your entire project to find the most relevant files and context for your request."
61+
- content: "What is the primary benefit of using the Plan agent before handing a task off to the Agent in GitHub Copilot?"
6262
choices:
63-
- content: "They determine the color scheme used by GitHub Copilot."
63+
- content: "The Plan agent runs terminal commands to prepare the workspace before the Agent begins making changes."
6464
isCorrect: false
65-
explanation: "Incorrect. Context and intent don't affect the color scheme of GitHub Copilot."
66-
- content: "They control the volume of the audio output from GitHub Copilot."
67-
isCorrect: false
68-
explanation: "Incorrect. Context and intent don't control the volume of any audio output, as GitHub Copilot doesn't provide audio output."
69-
- content: "They specify the scope that GitHub Copilot should examine and the goal to be achieved."
65+
explanation: "Incorrect. The Plan agent doesn't run terminal commands. It analyzes your codebase and produces a structured implementation plan."
66+
- content: "The Plan agent creates a structured, step-by-step implementation plan that you can review and confirm before any code changes are made."
7067
isCorrect: true
71-
explanation: "Correct. Context and intent help GitHub Copilot agents understand what part of the codebase to analyze and what outcome you want to achieve."
72-
- content: "What does code reliability refer to in software development?"
68+
explanation: "Correct. The Plan agent generates a detailed plan of what will be changed. You review it first, and only when it looks right do you hand it off to an implementation agent to execute."
69+
- content: "The Plan agent automatically applies all suggested code changes and then presents a summary of what was done."
70+
isCorrect: false
71+
explanation: "Incorrect. The Plan agent creates a plan without making code changes. It's up to you to hand the plan off to an implementation agent when you're ready."
72+
- content: "What is one key difference between 'Review selection' and 'Review changes' in GitHub Copilot code review?"
7373
choices:
74-
- content: "The use of modern CPU architectures by parallelizing tasks and performing I/O operations asynchronously."
74+
- content: "Review selection supports custom coding guidelines; Review changes does not."
7575
isCorrect: false
76-
explanation: "Incorrect. This is a method to improve code performance, not a definition of code reliability."
77-
- content: "The likelihood that software will function correctly under specific conditions and for a certain period of time."
78-
isCorrect: true
79-
explanation: "Correct. Code reliability refers to the probability of a software system functioning without failure under specified conditions for a specified period of time."
80-
- content: "The efficiency of a program or application."
76+
explanation: "Incorrect. It's the other way around. Review changes supports custom coding guidelines; Review selection does not."
77+
- content: "Review selection works only in the Source Control view; Review changes works in the code editor."
8178
isCorrect: false
82-
explanation: "Incorrect. This definition refers to code performance, not code reliability."
83-
- content: "What is one way to improve code reliability?"
79+
explanation: "Incorrect. Review selection works in the code editor where you highlight code. Review changes is accessed from the Source Control view."
80+
- content: "Review selection is a standard feature available to all GitHub Copilot subscribers; Review changes is a premium feature with a per-person monthly quota."
81+
isCorrect: true
82+
explanation: "Correct. Review selection is available to all GitHub Copilot subscribers as a standard feature. Review changes is a premium feature available on Pro, Pro+, Business, and Enterprise plans, with a per-person monthly quota."
83+
- content: "How does GitHub Copilot assist when a command fails to run in the terminal?"
8484
choices:
85-
- content: "By optimizing algorithms and data structures for the task at hand."
85+
- content: "It automatically reruns the command with corrected syntax and displays the new output."
8686
isCorrect: false
87-
explanation: "Incorrect. This is a method to improve code performance, not code reliability."
88-
- content: "By identifying potential issues in the code to prevent bugs and errors from occurring."
89-
isCorrect: true
90-
explanation: "Correct. Identifying potential issues in the code can help prevent bugs and errors from occurring, which improves code reliability."
91-
- content: "By minimizing disk and network I/O operations or performing them asynchronously."
87+
explanation: "Incorrect. GitHub Copilot doesn't automatically rerun commands. It offers a Quick Fix option for you to review and act on."
88+
- content: "It opens a new terminal window and runs a built-in diagnostic test."
9289
isCorrect: false
93-
explanation: "Incorrect. This is a method to improve code performance, not code reliability."
94-
- content: "What are some ways to improve exception handling in code to make it more secure?"
90+
explanation: "Incorrect. GitHub Copilot doesn't open new terminal windows or run diagnostic tests automatically."
91+
- content: "It displays a sparkle icon in the terminal gutter that offers a Quick Fix to explain what happened and suggest a resolution."
92+
isCorrect: true
93+
explanation: "Correct. When a command fails in the terminal, GitHub Copilot shows a sparkle icon in the gutter. Selecting it opens a Quick Fix that explains the error and suggests how to resolve it."
94+
- content: "How can you instruct GitHub Copilot to focus on specific concerns when reviewing your code?"
9595
choices:
96-
- content: "Revealing sensitive information in exceptions, catching general exceptions only, and swallowing exceptions."
96+
- content: "By selecting a specific programming language profile in Visual Studio Code settings."
9797
isCorrect: false
98-
explanation: "Incorrect. These practices don't improve exception handling. They can actually make the code less secure."
99-
- content: "Avoid revealing sensitive information in exceptions, catch the most specific exceptions possible, and avoid swallowing exceptions."
100-
isCorrect: true
101-
explanation: "Correct. These practices can help improve exception handling in code and make it more secure."
102-
- content: "Exposing detailed error information, catching only specific exceptions, and not rethrowing exceptions."
98+
explanation: "Incorrect. There's no language profile setting in Visual Studio Code that controls the focus of GitHub Copilot code review."
99+
- content: "By running the `/fix` slash command before requesting a review."
103100
isCorrect: false
104-
explanation: "Incorrect. Exposing detailed error information and not rethrowing exceptions can make the code less secure."
101+
explanation: "Incorrect. The `/fix` command is for fixing coding issues, not for customizing code review behavior."
102+
- content: "By adding custom instructions to a `.github/copilot-instructions.md` file or path-specific `.instructions.md` files in the repository."
103+
isCorrect: true
104+
explanation: "Correct. You can customize how GitHub Copilot reviews your code by specifying repository-wide guidelines in `.github/copilot-instructions.md`, or path-specific guidelines in `.github/instructions/**/*.instructions.md` files."

0 commit comments

Comments
 (0)