MathAng
MathAng

Reputation: 482

Does Github copilot analyze my whole code?

I would like to know if the current version of Github Copilot analyzes my entire code, my entire code base, or just the active file and a few open files? I use the jetbrains suite (I don't know if that matters).

If not, do you know if Copilot will use my whole code to make suggestions? I haven't found any clear answers on the web.

Upvotes: 23

Views: 28989

Answers (2)

Vincent Guo
Vincent Guo

Reputation: 21

@workspace can help. @workspace will make the whole project as the context and answer your question.

https://code.visualstudio.com/docs/copilot/workspace-context

Upvotes: 2

Flaflo
Flaflo

Reputation: 131

According to the following article from GitHub about Copilot:

GitHub Copilot analyzes the context in the file you are editing, as well as related files [...]

Source: https://docs.github.com/en/copilot/overview-of-github-copilot/about-github-copilot-individual

Upvotes: 6

Related Questions