Skip to content
Discussion options

You must be logged in to vote

n the recent GitHub Copilot update for Visual Studio Code, the behavior of automatically including the currently open file as context in the Chat View has been changed, and it no longer does so by default. To include the currently open file as context, you need to explicitly reference it. There are a few ways to achieve this:

Use the #editor Reference: You can include the currently open file's visible content as context by adding #editor to your chat prompt. This tells Copilot to use the content from the active editor window. For example, type #editor followed by your question in the Chat View to ensure the open file is considered.
Manually Reference Files: You can explicitly reference sp…

Replies: 7 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@doggy8088
Comment options

@Karpadoor
Comment options

@doggy8088
Comment options

Answer selected by doggy8088
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Ask and answer questions about GitHub features and usage Copilot in GitHub Copilot functionality in GitHub Copilot Chat and in github.com
8 participants