Skip to content

Commit ed0d0d7

Browse files
authored
Merge pull request #50312 from wwlpublish/970f4d654461f7ab7d120bc8afebc4c5359a6a2fe43f260f02c32de07f3f0dba-live
Modules/M05-implement-code-improvements-using-github-copilot-tools
2 parents 9154889 + 9344b3c commit ed0d0d7

11 files changed

+14
-14
lines changed

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: 12/09/2024
7+
ms.date: 05/07/2025
88
author: wwlpublish
99
ms.author: cahowd
1010
ms.topic: unit

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Examine GitHub Copilot support for code improvements
44
metadata:
55
title: Examine GitHub Copilot support for code improvements
66
description: "Examine GitHub Copilot support for code improvements"
7-
ms.date: 12/09/2024
7+
ms.date: 05/07/2025
88
author: wwlpublish
99
ms.author: cahowd
1010
ms.topic: unit

learn-pr/wwl-azure/implement-code-improvements-using-github-copilot-tools/3-exercise-improve-code-quality-github-copilot-chat.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: 'Exercise - Improve code quality by using GitHub Copilot Chat '
44
metadata:
55
title: Exercise - Improve code quality by using GitHub Copilot Chat
66
description: "Exercise - Improve code quality by using GitHub Copilot Chat"
7-
ms.date: 12/09/2024
7+
ms.date: 05/07/2025
88
author: wwlpublish
99
ms.author: cahowd
1010
ms.topic: unit

learn-pr/wwl-azure/implement-code-improvements-using-github-copilot-tools/4-exercise-improve-reliability-performance-github-copilot-chat.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Exercise - Improve code reliability and performance by using GitHub Copil
44
metadata:
55
title: Exercise - Improve code reliability and performance by using GitHub Copilot Chat
66
description: "Exercise - Improve code reliability and performance by using GitHub Copilot Chat"
7-
ms.date: 12/09/2024
7+
ms.date: 05/07/2025
88
author: wwlpublish
99
ms.author: cahowd
1010
ms.topic: unit

learn-pr/wwl-azure/implement-code-improvements-using-github-copilot-tools/5-exercise-improve-code-security-github-copilot-chat.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Exercise - Improve code security by using GitHub Copilot Chat
44
metadata:
55
title: Exercise - Improve code security by using GitHub Copilot Chat
66
description: "Exercise - Improve code security by using GitHub Copilot Chat"
7-
ms.date: 12/09/2024
7+
ms.date: 05/07/2025
88
author: wwlpublish
99
ms.author: cahowd
1010
ms.topic: unit

learn-pr/wwl-azure/implement-code-improvements-using-github-copilot-tools/6-exercise-complete-app-improvement-challenge.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ uid: learn.wwl.implement-code-improvements-using-github-copilot-tools.exercise-c
33
title: Exercise - Complete the "app improvement" challenge
44
metadata:
55
title: Exercise - Complete the "app improvement" challenge
6-
description: "Exercise - Complete the \"app improvement\" challenge"
7-
ms.date: 12/09/2024
6+
description: "Exercise - Complete the app improvement challenge"
7+
ms.date: 05/07/2025
88
author: wwlpublish
99
ms.author: cahowd
1010
ms.topic: unit

learn-pr/wwl-azure/implement-code-improvements-using-github-copilot-tools/7-review-app-improvement-solution.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ uid: learn.wwl.implement-code-improvements-using-github-copilot-tools.review-app
33
title: Review the "app improvement" solution
44
metadata:
55
title: Review the "app improvement" solution
6-
description: "Review the \"app improvement\" solution"
7-
ms.date: 12/09/2024
6+
description: "Review the app improvement solution"
7+
ms.date: 05/07/2025
88
author: wwlpublish
99
ms.author: cahowd
1010
ms.topic: unit

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

Lines changed: 1 addition & 1 deletion
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: 12/09/2024
7+
ms.date: 05/07/2025
88
author: wwlpublish
99
ms.author: cahowd
1010
ms.topic: unit

learn-pr/wwl-azure/implement-code-improvements-using-github-copilot-tools/9-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: 12/09/2024
7+
ms.date: 05/07/2025
88
author: wwlpublish
99
ms.author: cahowd
1010
ms.topic: unit

learn-pr/wwl-azure/implement-code-improvements-using-github-copilot-tools/includes/3-exercise-improve-code-quality-github-copilot-chat.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ To prepare for the exercises in this module, complete the following steps:
6969

7070
### Develop prompts for GitHub Copilot Chat
7171

72-
The prompts you write for GitHub Copilot Chat should provide a clearly defined *context* and *intent*. The *intent* portion of the prompt describes the goal that you what to achieve. For example, you may ask GitHub Copilot to "refactor to improve code modularity". The *context* portion of the prompt tells GitHub Copilot what resources to consider. For example, you may want GitHub Copilot to consider the entire workspace, but focus on a specific file or code section. Consider the following suggestions when developing your prompts:
72+
The prompts you write for GitHub Copilot Chat should provide a clearly defined *context* and *intent*. The *intent* portion of the prompt describes the goal that you want to achieve. For example, you may ask GitHub Copilot to "refactor to improve code modularity". The *context* portion of the prompt tells GitHub Copilot what resources to consider. For example, you may want GitHub Copilot to consider the entire workspace, but focus on a specific file or code section. Consider the following suggestions when developing your prompts:
7373

7474
- Define an outer context that's scoped at a higher level than the code you want to update. For example, if you want to refactor a method, define the outer context by specifying the class or file that contains the method and any code that interacts with or depends on the method. Identify the method as an inner context.
7575
- Use chat participants and chat variables to help specify context. You can use the **Attach Context** button to add files to the Chat context, and the `#selection` chat variable to identify the specific code you are focused on. You can also include the full workspace (`@workspace`) when appropriate. Suppose you want to refactor a method in a specific file. You can use the **Attach Context** button to tell GitHub Copilot which files to examine when generating suggestions. You can select the method in the editor and use the `#selection` chat variable to tell GitHub Copilot what code to you want to refactor. You can also use the `@workspace` chat variable to tell GitHub Copilot to consider the entire workspace. Reinforce the specified context by referring to the selection or file in the natural language portion of your prompt. For example, you might say, "how can I improve the readability of the Transfer method?"

0 commit comments

Comments
 (0)