You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Copy file name to clipboardExpand all lines: learn-pr/wwl-azure/implement-code-improvements-using-github-copilot-tools/9-knowledge-check.yml
+15-15Lines changed: 15 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -14,36 +14,36 @@ durationInMinutes: 8
14
14
quiz:
15
15
title: "Check your knowledge"
16
16
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?"
18
18
choices:
19
19
- content: "By suggesting potential refactoring updates based on the context of your codebase."
20
20
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."
22
22
- content: "By providing a detailed analysis of the class's dependencies."
23
23
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."
25
25
- content: "By automatically rewriting the entire class."
26
26
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?"
29
29
choices:
30
30
- content: "By running automated tests and identifying the root cause."
31
31
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."
33
33
- content: "By suggesting code snippets and solutions based on the context of the error or issue."
34
34
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."
36
36
- content: "By comparing your code with a database of known bug patterns."
37
37
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."
39
39
- content: "What is the purpose of code refactoring?"
40
40
choices:
41
41
- content: "To alter the external behavior or functionality of the code."
42
42
isCorrect: false
43
43
explanation: "Incorrect. Code refactoring doesn't change the external behavior or functionality of the code."
44
44
- content: "To improve the internal structure of the code without altering its external behavior or functionality."
45
45
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."
47
47
- content: "To add new features or enhancements to the code."
48
48
isCorrect: false
49
49
explanation: "Incorrect. Code refactoring isn't primarily about adding new features or enhancements, but about improving the internal structure of the code."
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?"
62
62
choices:
63
-
- content: "They determine the color scheme used by GitHub Copilot Chat."
63
+
- content: "They determine the color scheme used by GitHub Copilot."
64
64
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."
67
67
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."
69
69
- content: "They specify the scope that GitHub Copilot should examine and the goal to be achieved."
70
70
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."
72
72
- content: "What does code reliability refer to in software development?"
73
73
choices:
74
74
- content: "The use of modern CPU architectures by parallelizing tasks and performing I/O operations asynchronously."
Copy file name to clipboardExpand all lines: learn-pr/wwl-azure/implement-code-improvements-using-github-copilot-tools/includes/1-introduction.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,15 +8,15 @@ The topics covered in this module include:
8
8
- Using GitHub Copilot's quick fix options.
9
9
- Code refactoring with GitHub Copilot best practices.
10
10
- 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.
12
12
- Exploring GitHub Copilot code review features.
13
13
- Refactor C# Code with GitHub Copilot.
14
14
15
15
After completing this module, you’ll be able to:
16
16
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.
18
18
- 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.
20
20
- Conduct code reviews using GitHub Copilot's review selection and review changes features to ensure quality, reliability, and security.
21
21
- Complete a hands-on exercise to refactor and optimize a C# application using GitHub Copilot.
Copy file name to clipboardExpand all lines: learn-pr/wwl-azure/implement-code-improvements-using-github-copilot-tools/includes/2-review-github-copilot-code-improvement-features.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,14 +10,14 @@ Visual Studio Code provides easy access to the following GitHub Copilot features
10
10
11
11
### Chat view
12
12
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:
14
14
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.
18
18
19
19
> [!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.
GitHub Copilot provides quick fix options that address coding issues, test failures, and problems detected in the command terminal. Quick fix options include:
2
2
3
3
- 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.
6
6
7
7
## Fix coding issues using the Fix smart action
8
8
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.
10
10
11
11
To fix a coding issue using the **Fix** smart action:
12
12
13
13
1. Open your application code file.
14
14
15
15
1. Select the code you want to fix.
16
16
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**.
18
18
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.
20
20
21
21
1. Optionally, refine the suggested code update by submitting a prompt that provides additional context.
22
22
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.
24
24
25
25

26
26
27
27
## Fix testing errors
28
28
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.
30
30
31
31
1. In the Test Explorer, hover over a failing test.
32
32
33
33
1. Select the **Fix Test Failure** button (sparkle icon).
34
34
35
-
1. Review and apply Copilot's suggested fix.
35
+
1. Review and apply GitHub Copilot's suggested fix.
36
36
37
37
Alternatively, you can:
38
38
39
39
1. Open the Chat view.
40
40
41
41
1. Enter the `/fixTestFailure` command.
42
42
43
-
1. Follow Copilot's suggestions to fix the test.
43
+
1. Follow GitHub Copilot's suggestions to fix the test.
44
44
45
45
> [!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.
47
47
48
48
## Fix terminal errors
49
49
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.
51
51
52
52

53
53
54
54
## Summary
55
55
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