Skip to content

Commit 4ee6429

Browse files
committed
Highlight codebase chat variable more
1 parent 6ce7efb commit 4ee6429

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

docs/copilot/copilot-edits.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ In edit mode, you select which files to edit and provide the relevant context an
6666
Copilot Edits streams the edits in the editor. In the working set, files that were edited by Copilot are marked in bold.
6767

6868
> [!TIP]
69-
> Add more specific context by using chat variables like `#file` or `#sym` to reference files or symbols. Use `#codebase` to let Copilot collect relevant context from your entire workspace.
69+
> Let Copilot find the right files automatically by adding `#codebase` in your prompt.
7070
7171
1. Review the suggested edits and accept or discard the suggested edits
7272

@@ -135,6 +135,8 @@ You have many options to add files to the working set:
135135
136136
![Screenshot showing the Copilot Edits view and the file search Quick Pick, highlighting the buttons to add context.](images/copilot-edits/copilot-edits-add-files.png)
137137

138+
* Let Copilot find the right files automatically by adding `#codebase` in your prompt.
139+
138140
* Drag and drop editor tabs, or files or folders from the Explorer view, Search view, or editor breadcrumb onto the Copilot Edits view.
139141

140142
When you drop a folder onto the Copilot Edits view, all files in that folder are added to the working set.
@@ -147,10 +149,6 @@ You have many options to add files to the working set:
147149

148150
If you don't want to see these suggestions, you can disable them with the `setting(github.copilot.chat.edits.suggestRelatedFilesFromGitHistory)` setting.
149151

150-
To further help Copilot Edits provide better code suggestions, you can also add relevant context to your prompt, such as `#selection` or `#terminalSelection`. Use `#codebase` to let Copilot collect relevant context from your entire workspace. Type the `#` symbol or use the <i class="codicon codicon-attach"></i> icon (`kb(workbench.action.chat.attachContext)`) to add context to your prompt.
151-
152-
You can also add specific file or symbol references in your prompt by using `#` as an IntelliSense trigger for file or symbol suggestions. If Copilot decides to make changes to the files you mentioned in your prompt, they are added automatically to your working set.
153-
154152
When Copilot Edits generates edits for your project, it visually indicates which files in the working set are edited. Select a file in the working set to open it and view the proposed edits in the editor.
155153

156154
![Screenshot showing the Copilot Edits response for "Add a feedback field in the contact page" and showing the diff in the editor.](images/copilot-edits/copilot-edits-view-edits-in-file.png)

0 commit comments

Comments
 (0)