This commit is contained in:
Nick Trogh 2024-11-12 18:06:49 +01:00
Родитель aa361effd2
Коммит 948b31969d
3 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:42a3a6e9bb70399f9b257b9a3f49a29ac00302e15a9fe21429f831699bbbba0c
size 89234
oid sha256:62df0266f84335b6c46aba12a113654207503c1f2eb13696901a4ccbd745f4e9
size 58254

Просмотреть файл

@ -27,11 +27,11 @@ Copilot Edits works because it puts you in control, from setting the right conte
There is a new UI concept – the Working Set - that puts you in control and allows you to define on what files the edits need to be applied. You can also add files to the working set by dragging and dropping files or editor tabs, or by pressing `#` to explicitly add them. Copilot Edits automatically adds your active editors across editor groups to the Working Set.
<img src="/assets/blogs/2024/11/12/working-set.png" alt="Screenshot of the Working Set, showing the user adding index.js" style="width:600px;">
![Screenshot of the Working Set, showing the user adding index.js](working-set.png)
Working Sets, together with the Undo and Redo functionality, gives you precise control over changes and allows you to decide exactly where and how to apply them. Copilot Edits shows the generated edits in-place right in your code and provides you with a code review flow, where you can accept or discard each of the AI-generated edits. Copilot Edits will not make changes outside of the Working Set – the only exception being when it proposes to create a new file.
<img src="/assets/blogs/2024/11/12/changes.png" alt="Screenshot of the inline changes, showing the Accept / Discard widget" style="width:600px;">
![Screenshot of the inline changes, showing the Accept / Discard widget](changes.png)
Copilot Edits is in the Secondary Side Bar (default on the right) so that you can interact with views in the Primary Side Bar, such as the Explorer, Debug, or Source Control view, while youre reviewing proposed changes. For example, you can have unit tests running in the [Testing](https://code.visualstudio.com/docs/editor/testing) view on the left, while using the Copilot Edits view on the right, so that in every iteration you can verify if the changes Copilot Edits proposed are passing the unit tests.

Просмотреть файл

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:27b6c5adfc83a1d122e0cf4406c90fb439d930233a5a8ba3c2142cb2eb17fdc2
size 41102
oid sha256:2c25782a05cf9f0a981647571f4aff676155084d26aa40b29fb1dd1f546e86a1
size 38700