Skip to content

Commit a6b0c13

Browse files
committed
Refactor documentation to update GitHub Copilot terminology and improve clarity
- Updated references from "GitHub Copilot Chat" to "GitHub Copilot" and adjusted terminology for consistency across multiple files. - Enhanced quiz questions and explanations in knowledge check YAML to reflect changes in Copilot's features. - Revised introduction and instructional content to clarify the use of Copilot's agents and modes. - Improved descriptions of code review features and quick fix options to align with current functionality. - Adjusted exercise instructions to reflect updated modes and features for refactoring tasks.
1 parent b0241da commit a6b0c13

9 files changed

Lines changed: 114 additions & 106 deletions

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

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,36 +14,36 @@ durationInMinutes: 8
1414
quiz:
1515
title: "Check your knowledge"
1616
questions:
17-
- content: "How can GitHub Copilot Chat assist in improving the modularity of a class?"
17+
- content: "How can GitHub Copilot help improve the modularity of a class using its agents?"
1818
choices:
1919
- content: "By suggesting potential refactoring updates based on the context of your codebase."
2020
isCorrect: true
21-
explanation: "Correct. GitHub Copilot Chat can suggest potential refactoring updates to improve the modularity of a class."
21+
explanation: "Correct. GitHub Copilot can suggest refactoring updates to improve modularity, using context from your codebase and the selected agent."
2222
- content: "By providing a detailed analysis of the class's dependencies."
2323
isCorrect: false
24-
explanation: "Incorrect. GitHub Copilot Chat doesn't provide a detailed analysis of class dependencies, but it can suggest improvements to enhance modularity."
24+
explanation: "Incorrect. GitHub Copilot doesn't provide a detailed dependency analysis, but it can suggest improvements to enhance modularity."
2525
- content: "By automatically rewriting the entire class."
2626
isCorrect: false
27-
explanation: "Incorrect. GitHub Copilot Chat doesn't rewrite entire classes, but it can suggest improvements."
28-
- content: "How does GitHub Copilot Chat propose fixes for bugs in your code?"
27+
explanation: "Incorrect. GitHub Copilot doesn't rewrite entire classes, but it can suggest improvements."
28+
- content: "How does GitHub Copilot propose fixes for bugs in your code?"
2929
choices:
3030
- content: "By running automated tests and identifying the root cause."
3131
isCorrect: false
32-
explanation: "Incorrect. GitHub Copilot Chat doesn't run automated tests, but it suggests possible fixes based on the context of the error or issue."
32+
explanation: "Incorrect. GitHub Copilot doesn't run automated tests, but it suggests possible fixes based on the context of the error or issue."
3333
- content: "By suggesting code snippets and solutions based on the context of the error or issue."
3434
isCorrect: true
35-
explanation: "Correct. GitHub Copilot Chat proposes fixes for bugs by suggesting code snippets and solutions based on the context of the error or issue."
35+
explanation: "Correct. GitHub Copilot proposes fixes for bugs by suggesting code snippets and solutions based on the context of the error or issue, using smart actions or chat agents."
3636
- content: "By comparing your code with a database of known bug patterns."
3737
isCorrect: false
38-
explanation: "Incorrect. GitHub Copilot Chat doesn't compare your code with a database of known bug patterns, but it suggests possible fixes based on the context of the error or issue."
38+
explanation: "Incorrect. GitHub Copilot doesn't compare your code with a database of known bug patterns, but it suggests possible fixes based on the context of the error or issue."
3939
- content: "What is the purpose of code refactoring?"
4040
choices:
4141
- content: "To alter the external behavior or functionality of the code."
4242
isCorrect: false
4343
explanation: "Incorrect. Code refactoring doesn't change the external behavior or functionality of the code."
4444
- content: "To improve the internal structure of the code without altering its external behavior or functionality."
4545
isCorrect: true
46-
explanation: "Correct. Code refactoring is a process that enhances readability, simplifies complexity, increases modularity, and improves reusability, thereby creating a more manageable and maintainable codebase."
46+
explanation: "Correct. Code refactoring is a process that enhances readability, simplifies complexity, increases modularity, and improves reusability, often guided by suggestions from GitHub Copilot agents."
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."
@@ -58,17 +58,17 @@ quiz:
5858
- content: "Readability, complexity, modularity, reusability, testability, extensibility, reliability, performance, security, scalability, usability, and portability."
5959
isCorrect: true
6060
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 Chat?"
61+
- content: "What is the importance of context and intent when developing prompts for GitHub Copilot agents?"
6262
choices:
63-
- content: "They determine the color scheme used by GitHub Copilot Chat."
63+
- content: "They determine the color scheme used by GitHub Copilot."
6464
isCorrect: false
65-
explanation: "Incorrect. Context and intent don't affect the color scheme of GitHub Copilot Chat."
66-
- content: "They control the volume of the audio output from GitHub Copilot Chat."
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."
6767
isCorrect: false
68-
explanation: "Incorrect. Context and intent don't control the volume of any audio output, as GitHub Copilot Chat doesn't provide audio output."
68+
explanation: "Incorrect. Context and intent don't control the volume of any audio output, as GitHub Copilot doesn't provide audio output."
6969
- content: "They specify the scope that GitHub Copilot should examine and the goal to be achieved."
7070
isCorrect: true
71-
explanation: "Correct. The context should reference the workspace or a file to ensure that GitHub Copilot examines an appropriate scope when formulating a response, while the intent should describe the goal to be achieved."
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."
7272
- content: "What does code reliability refer to in software development?"
7373
choices:
7474
- content: "The use of modern CPU architectures by parallelizing tasks and performing I/O operations asynchronously."

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ The topics covered in this module include:
88
- Using GitHub Copilot's quick fix options.
99
- Code refactoring with GitHub Copilot best practices.
1010
- Refactor code with GitHub Copilot inline chat.
11-
- Refactoring code with GitHub Copilot ask, edit, and agent modes.
11+
- Refactoring code with GitHub Copilot Chat view agents.
1212
- Exploring GitHub Copilot code review features.
1313
- Refactor C# Code with GitHub Copilot.
1414

1515
After completing this module, you’ll be able to:
1616

17-
- Use GitHub Copilot's Chat view modes to analyze, edit, and execute tasks effectively.
17+
- Use GitHub Copilot's Chat view agents to analyze, plan, and execute tasks effectively.
1818
- Apply quick fix options to resolve coding issues, test failures, and terminal errors using tools like Fix smart actions and Inline Chat.
19-
- Refactor code to improve readability, reduce complexity, and enhance maintainability by leveraging Copilot's contextual tools and best practices.
19+
- Refactor code to improve readability, reduce complexity, and enhance maintainability by leveraging GitHub Copilot's contextual tools and best practices.
2020
- Conduct code reviews using GitHub Copilot's review selection and review changes features to ensure quality, reliability, and security.
2121
- Complete a hands-on exercise to refactor and optimize a C# application using GitHub Copilot.
2222

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ Visual Studio Code provides easy access to the following GitHub Copilot features
1010

1111
### Chat view
1212

13-
The Chat view is a dedicated panel in Visual Studio Code that allows you to interact with GitHub Copilot Chat. You can use the Chat view to submit prompts, receive suggestions, and implement updates to your codebase. The Chat view provides a user-friendly interface for managing chat conversations and accessing GitHub Copilot's features. The Chat view includes the following chat modes:
13+
The Chat view is a dedicated panel in Visual Studio Code that allows you to interact with GitHub Copilot Chat. You can use the Chat view to submit prompts, receive suggestions, and implement updates to your codebase. The Chat view provides a user-friendly interface for managing chat conversations and accessing GitHub Copilot's features. The Chat view includes the following built-in agents:
1414

15-
- Ask mode: Use the Ask mode to ask questions about your codebase or technology concepts. You can use Ask mode explain code, suggest revisions or fixes, or provide information related to the codebase.
16-
- Edit mode: Use the Edit mode to make edits across multiple files in your codebase. You can use Edit mode to refactor code, add comments, or make other changes to your code.
17-
- Agent mode: Use the Agent mode to start an agentic coding workflow. You can use Agent mode to run commands, execute code, or perform other tasks in your workspace.
15+
- Agent: Use the Agent to autonomously plan and implement changes across files, run terminal commands, and invoke tools.
16+
- Plan: Use the Plan agent to create a structured, step-by-step implementation plan before writing any code. When the plan looks right, hand it off to an implementation agent to execute it.
17+
- Ask: Use Ask to answer questions about coding concepts, your codebase, or VS Code itself without making file changes.
1818

1919
> [!IMPORTANT]
20-
> When you use the Chat view in Agent mode, GitHub Copilot may make multiple premium requests to complete a single task. Premium requests can be used by user-initiated prompts and follow-up actions Copilot takes on your behalf. The total premium requests used will depend on the complexity of the task, the number of steps involved, and the model selected.
20+
> When you use the Agent, GitHub Copilot may make multiple premium requests to complete a single task. Premium requests can be used by user-initiated prompts and follow-up actions GitHub Copilot takes on your behalf. The total premium requests used will depend on the complexity of the task, the number of steps involved, and the model selected.
2121
2222
### Inline chat
2323

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,56 @@
11
GitHub Copilot provides quick fix options that address coding issues, test failures, and problems detected in the command terminal. Quick fix options include:
22

33
- Smart action: The **Fix** smart action is a contextual action that can be used to fix coding errors without writing a prompt.
4-
- Slash command: The `/fix` slash command is available in ask mode, Inline Chat sessions, and the Quick Chat window.
5-
- Code actions: "Fix" code actions, such as **Fix using Copilot**, are displayed in the Visual Studio Code interface when Copilot detects certain issues.
4+
- Slash command: The `/fix` slash command is available in the Ask agent, Inline Chat sessions, and the Quick Chat window.
5+
- Code actions: "Fix" code actions, such as **Fix using Copilot**, are displayed in the Visual Studio Code interface when GitHub Copilot detects certain issues.
66

77
## Fix coding issues using the Fix smart action
88

9-
The **Fix** smart action is accessible from the Copilot context menu in the editor, and can be used to address coding issues without writing a prompt.
9+
The **Fix** smart action is accessible from the context menu in the editor, and can be used to address coding issues without writing a prompt.
1010

1111
To fix a coding issue using the **Fix** smart action:
1212

1313
1. Open your application code file.
1414

1515
1. Select the code you want to fix.
1616

17-
1. Right-click the selected code, select **Copilot**, and then select **Fix**.
17+
1. Right-click the selected code, and then select **Generate Code > Fix**.
1818

19-
Copilot opens an Inline Chat session to display a code update suggestion directly in the editor. Select **Accept** or **Close** to accept or discard the suggested fix.
19+
GitHub Copilot opens an Inline Chat session to display a code update suggestion directly in the editor. Select **Accept** or **Close** to accept or discard the suggested fix.
2020

2121
1. Optionally, refine the suggested code update by submitting a prompt that provides additional context.
2222

23-
Alternatively, if there's a compile or linting problem in a code file, Copilot shows a **Fix using Copilot** code action (sparkle icon) in the editor when you hover the mouse pointer over the issue.
23+
Alternatively, if there's a compile or linting problem in a code file, GitHub Copilot shows a code action (sparkle icon) in the editor when you hover the mouse pointer over the issue.
2424

2525
![Screenshot showing "Fix using Copilot" action in the editor.](../media/github-copilot-smart-action-fix-compile-linting-problem.png)
2626

2727
## Fix testing errors
2828

29-
Copilot integrates with the Test Explorer in VS Code and can help with fixing failing tests.
29+
GitHub Copilot integrates with the Test Explorer in VS Code and can help with fixing failing tests.
3030

3131
1. In the Test Explorer, hover over a failing test.
3232

3333
1. Select the **Fix Test Failure** button (sparkle icon).
3434

35-
1. Review and apply Copilot's suggested fix.
35+
1. Review and apply GitHub Copilot's suggested fix.
3636

3737
Alternatively, you can:
3838

3939
1. Open the Chat view.
4040

4141
1. Enter the `/fixTestFailure` command.
4242

43-
1. Follow Copilot's suggestions to fix the test.
43+
1. Follow GitHub Copilot's suggestions to fix the test.
4444

4545
> [!NOTE]
46-
> Agent mode monitors the test output when running tests, and automatically attempts to fix and rerun failing tests. Using agent mode to monitor test output can help you quickly identify and resolve issues in your code. However, when you use agent mode, GitHub Copilot may make multiple premium requests to complete a single task. Premium requests can be used by user-initiated prompts and follow-up actions Copilot takes on your behalf. The total premium requests used depends on the complexity of the task, the number of steps involved, and the model selected.
46+
> The Agent monitors the test output when running tests, and automatically attempts to fix and rerun failing tests. Using the Agent to monitor test output can help you quickly identify and resolve issues in your code. However, when you use the Agent, GitHub Copilot may make multiple premium requests to complete a single task. Premium requests can be used by user-initiated prompts and follow-up actions GitHub Copilot takes on your behalf. The total premium requests used depends on the complexity of the task, the number of steps involved, and the model selected.
4747
4848
## Fix terminal errors
4949

50-
When a command fails to run in the terminal, Copilot displays a sparkle icon in the gutter that offers a Quick Fix to explain what happened.
50+
When a command fails to run in the terminal, GitHub Copilot displays a sparkle icon in the gutter that offers a Quick Fix to explain what happened.
5151

5252
![Screenshot showing "Fix using Copilot" action in the terminal.](../media/github-copilot-fix-terminal-errors.png)
5353

5454
## Summary
5555

56-
GitHub Copilot provides quick fix options that address coding issues, test failures, and problems detected in the command terminal. Quick fix options include the Fix smart action, the `/fix` slash command, and "Fix" code actions. The Fix smart action is accessible from the Copilot context menu in the editor, and can be used to address coding issues without writing a prompt. The Fix smart action can also be used to fix testing errors and terminal errors.
56+
GitHub Copilot provides quick fix options that address coding issues, test failures, and problems detected in the command terminal. Quick fix options include the Fix smart action, the `/fix` slash command, and "Fix" code actions. The Fix smart action is accessible from the context menu in the editor, and can be used to address coding issues without writing a prompt. The Fix smart action can also be used to fix testing errors and terminal errors.

0 commit comments

Comments
 (0)