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
Copy file name to clipboardExpand all lines: learn-pr/wwl-azure/get-started-github-copilot/includes/10-examine-chat-view-features.md
+18-22Lines changed: 18 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,15 +6,15 @@ The Chat view interface includes three sections: a toolbar near the top, a displ
6
6
7
7
To open the Chat view, you can select the **Toggle Chat** button (Copilot icon), or use the **Ctrl+Alt+I** keyboard shortcut.
8
8
9
-
## Select the Chat mode
9
+
## Select an agent
10
10
11
-
The Chat view provides the following modes:
11
+
The Chat view provides the following built-in agents:
12
12
13
-
-**Ask**: Use the ask mode to ask questions about your codebase or technology concepts. You can use the ask mode explain code, suggest revisions or fixes, or provide information related to the codebase.
14
-
-**Edit**: 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.
15
-
-**Agent**: 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.
13
+
-**Agent**: Use the Agent to start an agentic coding workflow. You can use the Agent to autonomously edit code, run commands, and perform tasks in your workspace.
14
+
-**Plan**: Use the Plan agent to create a structured, step-by-step implementation plan for a task. The Plan agent analyzes your request, breaks it down into discrete steps, and produces a detailed plan that can be handed off to the Agent for implementation.
15
+
-**Ask**: Use the Ask agent to ask questions about your codebase or technology concepts. You can use the Ask agent to explain code, suggest revisions or fixes, or provide information related to the codebase.
16
16
17
-
To switch modes, open the **Set Mode** menu at the bottom of the Chat view, and then select **Ask**, **Edit**, or **Agent**.
17
+
To switch agents, open the agent picker at the bottom of the Chat view, and then select **Agent**, **Plan**, or **Ask**.
18
18
19
19
> [!IMPORTANT]
20
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 number of premium requests used is based on the complexity of the task, the number of steps involved, and the model selected.
@@ -46,13 +46,13 @@ When you select the **Add Context** button, a menu appears that allows you to se
46
46
- Tools: This option allows you to add tools, for example the #fetch tool, to the chat prompt. You can select one or more tools to add as context.
47
47
- Recent Files (list of files you have recently opened in Visual Studio Code).
48
48
49
-
## Use **Ask** mode
49
+
## Use **Ask**
50
50
51
-
The ask mode is optimized for asking questions about your code projects, coding topics, and general technology concepts. Ask mode is useful when you need to gain an understanding of a codebase, brainstorm ideas, or get help with coding tasks. When you enter a prompt, the AI pair programmer responds with natural language descriptions, code snippets, and other relevant information to help you with your coding tasks. Responses are displayed in the Chat view.
51
+
The Ask agent is optimized for asking questions about your code projects, coding topics, and general technology concepts. The Ask agent is useful when you need to gain an understanding of a codebase, brainstorm ideas, or get help with coding tasks. When you enter a prompt, the AI pair programmer responds with natural language descriptions, code snippets, and other relevant information to help you with your coding tasks. Responses are displayed in the Chat view.
52
52
53
-
### Manage the ask mode's code suggestions
53
+
### Manage the Ask agent's code suggestions
54
54
55
-
When the chat response contains code blocks, you can apply them individually to the corresponding file in your workspace. Copilot performs a smart apply and inserts the changes in the right location within the file.
55
+
When the chat response contains code blocks, you can apply them individually to the corresponding file in your workspace. GitHub Copilot performs a smart apply and inserts the changes in the right location within the file.
56
56
57
57
To apply a code block to your codebase, hover over the code block and select the **Apply in Editor** button. Copilot tries to apply the proposed changes to your existing code.
58
58
@@ -66,29 +66,25 @@ If a code block contains a shell command, you can run it directly in the integra
66
66
67
67

68
68
69
-
## Use **Edit** mode
69
+
## Use **Plan**
70
70
71
-
The edit mode is optimized for making code update suggestions in your workspace. Edit mode is useful when you need to refactor code, add comments, or make other changes to your code. When you enter a prompt, the AI pair programmer responds with suggested code updates applied directly in the editor, where you can review them in-place, with the full context of the surrounding code. The response includes a description in the Chat view and can include edits across multiple files in your project.
71
+
The Plan agent is optimized for creating structured, step-by-step implementation plans for complex tasks. The Plan agent is useful when you want to break down a large task into discrete steps before making changes. When you enter a prompt, the Plan agent analyzes your request, evaluates the codebase, and produces a detailed implementation plan with individual steps.
72
72
73
-

74
-
75
-
A detailed description of the suggested updates is displayed in the Chat view, along with a list of the updated files. The Chat view provides the option to keep all updates, **Keep**, or undo all updates, **Undo**.
76
-
77
-
The updated files are opened in the editor with changes clearly highlighted. You can scroll through the suggested updates using up and down arrows, and make the decision to **Keep** or **Undo** individual updates. You can also make any other modifications as needed before accepting updates.
73
+
Once the plan is generated, the Chat view displays the structured plan with a list of steps. You can review the plan, provide feedback, and refine the steps before proceeding. When you're satisfied with the plan, you can hand it off to the Agent for implementation.
78
74
79
75
### Revert edits
80
76
81
-
After completing a series of code updates, you may decide that you need to roll back some of the changes. For example, you may want to use a different implementation strategy, or Copilot may have gone down the wrong path when generating edits.
77
+
After completing a series of code updates, you may decide that you need to roll back some of the changes. For example, you may want to use a different implementation strategy, or GitHub Copilot may have gone down the wrong path when generating edits.
82
78
83
79
You can use the **Undo Last Edit** control in the Chat view title bar to revert the last edits and return to the state before sending the last request. After you perform an undo of the last edit, you can redo those edits again by using the **Redo Last Edit** control in the Chat view title bar.
84
80
85
81

86
82
87
-
## Use **Agent** mode
83
+
## Use **Agent**
88
84
89
-
The agent mode allows you to specify a high-level task, and let AI autonomously evaluate the request, plan the work needed, and apply the changes to your codebase. Agent mode uses a combination of code editing and tool invocation to accomplish the task you specified. As it processes your request, it monitors the outcome of edits and tools, and iterates to resolve any issues that arise. Code updates are made directly in the editor as iterations are processed. Task progress is monitored and updates are displayed in the Chat view.
85
+
The Agent allows you to specify a high-level task, and let AI autonomously evaluate the request, plan the work needed, and apply the changes to your codebase. The Agent uses a combination of code editing and tool invocation to accomplish the task you specified. As it processes your request, it monitors the outcome of edits and tools, and iterates to resolve any issues that arise. Code updates are made directly in the editor as iterations are processed. Task progress is monitored and updates are displayed in the Chat view.
90
86
91
-
Agent mode uses tools to accomplish specialized tasks while processing a user request. For example, listing the files in a directory, editing a file in your workspace, running a terminal command, or getting the output from the terminal
87
+
The Agent uses tools to accomplish specialized tasks while processing a user request. For example, listing the files in a directory, editing a file in your workspace, running a terminal command, or getting the output from the terminal.
92
88
93
89
### Confirm tool invocations and terminal commands
94
90
@@ -100,4 +96,4 @@ Use the **Continue** button's dropdown options to automatically confirm the spec
100
96
101
97
## Summary
102
98
103
-
The Chat view in Visual Studio Code is used to manage chat conversations between you and the AI pair programmer. The Chat view interface includes three sections: a toolbar near the top, a display area in the center, and an input and control menu at the bottom. The Chat view provides three modes: Ask, Edit, and Agent. You can add context to your chat session by specifying context within your prompts, using chat variables, or using the **Add Context** button. The ask mode is optimized for asking questions about your code projects, coding topics, and general technology concepts. The edit mode is optimized for making code update suggestions in your workspace. The agent mode allows you to specify a high-level task and let AI autonomously evaluate the request, plan the work needed, and apply the changes to your codebase.
99
+
The Chat view in Visual Studio Code is used to manage chat conversations between you and the AI pair programmer. The Chat view interface includes three sections: a toolbar near the top, a display area in the center, and an input and control menu at the bottom. The Chat view provides three built-in agents: Agent, Plan, and Ask. You can add context to your chat session by specifying context within your prompts, using chat variables, or using the **Add Context** button. The Ask agent is optimized for asking questions about your code projects, coding topics, and general technology concepts. The Plan agent is optimized for creating structured, step-by-step implementation plans for complex tasks. The Agent allows you to specify a high-level task and let AI autonomously evaluate the request, plan the work needed, and apply the changes to your codebase.
Copy file name to clipboardExpand all lines: learn-pr/wwl-azure/get-started-github-copilot/includes/11-examine-inline-chat-smart-actions-quick-chat.md
+12-22Lines changed: 12 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,18 @@
1
-
In addition to the Chat view, GitHub Copilot Chat provides several other ways to interact with the AI pair programmer. These include inline chat, smart actions, and quick chat.
1
+
In addition to the Chat view, GitHub Copilot Chat provides several other ways to interact with the AI pair programmer. These include inline chatand smart actions.
2
2
3
3
## Inline chat
4
4
5
5
One of GitHub Copilot Chat's key features is answering questions inline as you're coding. This allows you to harness the power of AI directly within your code editor, with minimal interruption to your development workflow.
6
6
7
7
The inline chat feature is only accessible when a file is open in the editor. There are several ways to open an inline chat session:
8
8
9
-
- Select **Editor Inline Chat** from the Copilot Chat menu.
9
+
- Select **Editor Inline Chat** from the GitHub Copilot Chat menu.
10
10
- Use a keyboard shortcut: **Ctrl+I**.
11
11
- Right-click inside the code editor, select **Copilot** from the context menu, and then select **Editor Inline Chat**.
12
12
13
-

13
+

14
14
15
-
You can use an inline chat session to ask Copilot questions as you write or iterate your code.
15
+
You can use an inline chat session to ask GitHub Copilot questions as you write or iterate your code.
16
16
17
17
When you open an inline chat session, the following interface is presented in the Editor.
18
18
@@ -57,9 +57,9 @@ If you like the proposed code updates, you can select **Accept** and continue co
57
57
58
58

59
59
60
-
If you don't like the proposed updates, you can ask Copilot Chat to generate another suggestion by selecting the **Rerun...** icon. The Rerun icon is displayed as a circular arrow that appears below the prompt textbox.
60
+
If you don't like the proposed updates, you can ask GitHub Copilot Chat to generate another suggestion by selecting the **Rerun...** icon. The Rerun icon is displayed as a circular arrow that appears below the prompt textbox.
61
61
62
-
If you rerun the prompt and still don't get the results you need, try updating your prompt with additional context. Copilot Chat generates better suggestions when the prompt is clear, succinct, and accurate. You can choose **Discard** to close the inline chat without making any changes.
62
+
If you rerun the prompt and still don't get the results you need, try updating your prompt with additional context. GitHub Copilot Chat generates better suggestions when the prompt is clear, succinct, and accurate. You can choose **Discard** to close the inline chat without making any changes.
63
63
64
64
## Smart actions
65
65
@@ -68,12 +68,12 @@ Some tasks are so common that they can be automated. GitHub Copilot Chat include
68
68
The following smart actions are available:
69
69
70
70
-**Explain**: The `Explain` action generates a natural language description of the selected code. This can be useful for understanding the purpose and functionality of a code snippet. The `Explain` action is especially useful if you're working with unfamiliar code or need to explain the code to others.
71
-
-**Fix**: The `Fix` action suggests a fix for the selected code. This can be helpful if you encounter an error or issue in your code and need guidance on how to resolve it. Copilot Chat can suggest changes to variables, control structures, or function calls that might resolve the issue.
71
+
-**Fix**: The `Fix` action suggests a fix for the selected code. This can be helpful if you encounter an error or issue in your code and need guidance on how to resolve it. GitHub Copilot Chat can suggest changes to variables, control structures, or function calls that might resolve the issue.
72
72
-**Review and Comment**: The `Review and Comment` action provides a code review of the selected code. This can be useful for identifying potential issues, improving code quality, and ensuring best practices are followed. The `Review and Comment` action can help you identify bugs, performance bottlenecks, and security vulnerabilities in your code.
73
73
-**Generate Docs**: The `Generate Docs` action creates documentation for the selected code. This can be useful for documenting your codebase, especially if you're working on a project with multiple contributors or need to share your code with others.
74
74
-**Generate Tests**: The `Generate Tests` action creates unit tests for the selected code. This can be helpful for ensuring the correctness and reliability of your code, especially if you're working on a project with complex logic or critical functionality.
75
75
76
-
To access the smart actions, right-click on a code snippet in the editor and select the desired action from the Copilot context menu.
76
+
To access the smart actions, right-click on a code snippet in the editor and select the desired action from the GitHub Copilot context menu.
77
77
78
78

79
79
@@ -101,7 +101,7 @@ You can use the **Review This** smart action to check code selections. To use th
101
101
102
102
1. Select a code snippet that needs review. In this case, the code that generates the list of random numbers.
103
103
104
-
1. Select **Review This** from the Copilot context menu.
104
+
1. Select **Review This** from the GitHub Copilot context menu.
105
105
106
106
1. Review the suggested updates and select **Accept** to apply the changes.
107
107
@@ -137,7 +137,7 @@ Fortunately, you can use the **Fix** smart action to correct the error. To use t
137
137
138
138
1. Right-click on the code snippet that needs to be fixed. In this case, the code underlined in red.
139
139
140
-
1. Select **Fix** from the Copilot context menu.
140
+
1. Select **Fix** from the GitHub Copilot context menu.
141
141
142
142
1. Review the suggested fix and select **Accept** to apply the changes.
143
143
@@ -160,18 +160,8 @@ int sum = addPrimeNumbersInNumericList(numbers.ToList());
160
160
Console.WriteLine(sum);
161
161
```
162
162
163
-
As always, review the suggestion provided by Copilot Chat. There may better solutions. You can select **Accept** to update your code with the proposed fix.
164
-
165
-
## Quick Chat
166
-
167
-
The third option that GitHub Copilot Chat provides for chat interactions is Quick Chat.
168
-
169
-
You can use the Quick Chat feature of GitHub Copilot Chat when you want to have a quick, interactive conversation with the AI. This can be useful when you're trying to solve a problem, need help with understanding a piece of code, or want to brainstorm ideas. It's designed to feel like you're chatting with a fellow developer, making it a great tool for collaborative problem-solving.
170
-
171
-
To open a Quick Chat window, you can press **Ctrl+Shift+Alt+L** in the Visual Studio Code editor, or you can open Quick Chat from the Copilot Chat menu.
172
-
173
-

163
+
As always, review the suggestion provided by GitHub Copilot Chat. There may better solutions. You can select **Accept** to update your code with the proposed fix.
174
164
175
165
## Summary
176
166
177
-
GitHub Copilot Chat provides several ways to interact with the AI pair programmer, including inline chat, smart actions, and Quick Chat. These features allow you to ask questions, get code suggestions, and perform common coding tasks quickly and easily.
167
+
GitHub Copilot Chat provides several ways to interact with the AI pair programmer, including inline chatand smart actions. These features allow you to ask questions, get code suggestions, and perform common coding tasks quickly and easily. Inline chat enables you to ask GitHub Copilot questions directly in the editor without switching context. Smart actions provide predefined operations like explaining code, fixing errors, generating tests, and reviewing code that you can run with a single click from the context menu.
0 commit comments