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: docs/copilot/getting-started.md
+9-5Lines changed: 9 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -126,30 +126,34 @@ As you're working in a new codebase, or exploring a new programming language, yo
126
126
127
127
## Make edits across multiple files with Copilot Edits (preview)
128
128
129
-
Larger code changes might involve making edits to multiple files. With Copilot Edits, you can get AI-powered suggestions inline in the editor, across multiple files in your workspace.
129
+
Larger code changes might involve making edits to multiple files. With Copilot Edits, you can get AI-powered suggestions inline in the editor, across multiple files in your workspace.Insteadof applying individual code blocks, Copilot Edits makes edits across your workspace.
130
130
131
131
Let's use Copilot Edits to return the contents of an HTML file in a web server response.
132
132
133
133
1. Select **Open Copilot Edits** from the Command Center Copilot menu or press `kb(workbench.action.chat.openEditSession)`.
134
134
135
135

136
136
137
-
1. The Copilot Edits view is opened. Notice that the `server.ts` file is added to the *Working Set*.
137
+
1. The Copilot Edits view is opened. Notice that the `server.ts` file is added to the *working set*.
138
138
139
-
The Working Set contains the files that can be modified by Copilot Edits. If the file is not added, use **Add Files...* to add the file to the Working Set.
139
+
The working set contains the files that can be modified by Copilot Edits. If the file is not added, use **Add Files...* to add the file to the working set.
140
140
141
-

141
+

142
142
143
143
1. Enter *Return a static html page as the home page and implement it.* in the chat input field and press `kbstyle(Enter)` to start a new edit session.
144
144
145
-
Notice that Copilot Edits updates the `server.ts` file to return a static HTML page in the web server response. It also adds a new file `index.html` to the workspace.
145
+
Notice that Copilot Edits makes multiple edits: it updates the `server.ts` file to return a static HTML page, and it also adds a new file `index.html`.
146
146
147
147

148
148
149
149
1. If you're happy with the results, select **Accept** to apply all suggested changes.
150
150
151
151

152
152
153
+
You can also navigate between the different edited files and accept/discard them by using the editor overlay controls.
154
+
155
+

156
+
153
157
## Fix coding errors with Copilot
154
158
155
159
Aside from inline completions and chat conversations, GitHub Copilot is available in different places and throughout your developer flow inVSCode. You might notice the presence of Copilot functionality through the *sparkle* icon in the VS Code user interface.
0 commit comments